• Resolved wasanajones

    (@wasanajones)


    Hi – have enjoyed good plugin for awhile, but recent update causing page loading problems.

    went from 2.5 seconds to 5.9, directly attributable to bbp style pack.

    it is disrupting subsequently loading until /css/bspstyle.css finishes

    site is WP multisite, primary site enabled, uses autoptimize, WP Super Cache and Speed Up – Lazy Load, genesis theme with bbPress Genesis Extend

    looks like bspstyle.css not being optimized by autoptimize – loading on its own as shown by gtmetrix

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter wasanajones

    (@wasanajones)

    I deactivated and then reactivated the plugin and it seems to caching and minifying properly now.

    hopefully will stay that way. marking as resolved.

    thanks (plugin is a lifesaver)

    Plugin Author Robin W

    (@robin-w)

    great – glad you are fixed !

    Thread Starter wasanajones

    (@wasanajones)

    oops… back to being a problem

    suspect it has something to do with the way autoptimize caching works — but bbp style pack css bspstyle.css is loading out of proper sequence again and blocking other elements – adding more than 2 seconds to visible page loading

    I might simply copy the generated css and load it separately – but I rather take advantage of all the features of this nice plugin.

    not sure how to troubleshoot it but you might want to see if you can duplicate any issues with autoptimize

    thanks

    If the stylesheets come with different media-types, than autoptimize will aggregate them in separate autoptimized stylesheets and the order might indeed be broken.

    see this blogpost for an explanation of what is happening and example code of how to use autoptimize’s API to work around this problem.

    but ideally the media-type is “corrected” in the plugin code πŸ˜‰

    hope this helps,
    frank (ao dev)

    Plugin Author Robin W

    (@robin-w)

    @optimizingmatters maybe you can help further, as this is not my expertise.

    My style pack plugin has the following (shortened to get to the guts)

    
    function bsp_enqueue_css() {
    global $bsp_css_location ;
    $bsp_ver = get_option('bsp_version') ;
    wp_register_style('bsp', plugins_url('css/bspstyle.css',dirname(__FILE__) ), array( 'bbp-default' ), $bsp_ver, 'screen');
    	wp_enqueue_style( 'bsp');
    	
    	wp_enqueue_style( 'dashicons');
    
    }
    
    add_action('wp_enqueue_scripts', 'bsp_enqueue_css');

    so seems to be screen – unless the dashicons bit is mucking it up.

    Thoughts?

    so seems to be screen – unless the dashicons bit is mucking it up.

    Thoughts?

    well, the questions is what media-value the other plugins (and theme) were loaded with in this specific case, so we’d need @wasanajones to share a URL πŸ™‚

    Plugin Author Robin W

    (@robin-w)

    great – thanks

    Thread Starter wasanajones

    (@wasanajones)

    Hello –

    I really appreciate the attention to this.

    It just so happens the site is just about ready to promote so I can share the URL..

    https://bikingpress.com

    GTMetrix with bbp style pack disabled https://gtmetrix.com/reports/bikingpress.com/xxWZ40Um
    (when you see how many plugins and images the site has 1.5 second page load is kinda impressive – thanks largely to autoptimize (plug for the plugin)

    GTMetrix with bbp style pack enabled https://gtmetrix.com/reports/bikingpress.com/ArA1Puul

    bbp style pack also deserves some praise too, the forums are just ugly without it so it is worth figuring this out…

    it also occurred to me that I could set it up so that bbp style pack doesn’t load unless forum pages. I’ve played with different ways of doing that but not sure what would be best idea.

    of course getting bbp style pack and autopimize playing together is best resolution

    Thanks

    I’m trying to see your site un-optimized by adding ?ao_noptimize=1 to the URL, but your page cache seems to disregard querystring paramaters @wasanajones, could you (briefly) change that?

    Thread Starter wasanajones

    (@wasanajones)

    please try now, I had Remove Query Strings From Static Resources plugin enabled

    I’ve cleared autoptimize, cloudflare, and supercache caches

    cloudflare on development mode

    thanks

    no, no dice, https://bikingpress.com/?ao_noptimize=1 still showing autoptimized HTML. can you check the

    Don’t cache pages with GET parameters. (?x=y at the end of a url)

    setting in WP Super Cache?

    Plugin Author Robin W

    (@robin-w)

    just to say I am monitoring, and very happy to improve my plugin I that is the answer !!

    Thread Starter wasanajones

    (@wasanajones)

    Hi –

    Don’t cache pages with GET parameters. (?x=y at the end of a url)

    is NOT checked (was not been checked)

    is NOT checked

    so can you check it? πŸ™‚

    hmm, I just noticed https://bikingpress.com/wp-content/plugins/bbp-style-pack/css/bspstyle.css actually redirects to … the homepage, cfr. the waterfall chart in the GTMetrix test. Seems like somethings broken there?!

Viewing 15 replies - 1 through 15 (of 20 total)

The topic ‘slow loading’ is closed to new replies.