Support » Plugin: Autoptimize » Still loading 17 JS files

  • webfactoryuk

    (@webfactoryuk)


    Hi,

    Hoping someone can help. Just launched a new site and installed Autoptimize but I notice there is still 17 external JS files and 10 CSS files loading on the site.

    Its like Autoptimize is missing some. I cant work out whats different on this site compared to others where its normally down to around 5-10

    Obviously scoring quite badly with the old “Make fewer HTTP requests” which is on 0 on GTMetrix. I dont expect 100/100 but normally can do better than 0.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    JS optimization works (you have a large autoptimize_xyz.js file), but indeed you have multiple JS-files that were not aggregated. could be because plugins use AO’s API to force their JS not to be aggregated ..

    webfactoryuk

    (@webfactoryuk)

    Thanks for the quick response. It just seems odd. Around 20 plugins running on the site but only 2 or 3 are ones I dont normally use but I just cant reduce the request number. That’s not a different number to other sites either and I have been quite selective with this one.

    webfactoryuk

    (@webfactoryuk)

    I notice on older sites the list of exlcuded JS is

    seal.js, js/jquery/jquery.js

    But on the new site its different…

    wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js

    Is that just an update?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    those is the new “safe default” for new installation (to avoid Gutenberg and/or tinymce errors), feel free to change/ remove if you want.

    Hi folks,

    Just a tip —

    If your website is served over HTTP/2 and has ‘lots’ of JavaScript, concatenating this JavaScript into a single or even a few files will decrease real world performance.

    Multiple minified and deferred JavaScript files are parsed far more efficiently over HTTP/2 since they are multiplexed/served in parallel, whereas if one has them all — or nearly all — of them combined, the end user is going to have to wait the additional time it takes for that one big JavaScript file to finish. The real world affect being the delayed loading of anything above the fold or functionality dependent upon JavaScript, sliders for example. That a combined JavaScript file can be deferred does not ipso facto translate into improved perceived speed, even if some or another best practices recommendations tool gives one higher grades for having combined their website’s JavaScript.

    In short, while tools like GTmetrix can be helpful if interpreted correctly, the bottom line is that blindly following the suggestions tools like this make will often result in anti-patterns which translate into a slower site for one’s real human users, which then translates into degraded UX, which then of course translates into the Universe collapsing in on itself and the end of all life in the Cosmos… please don’t end all life in the Cosmos.

    Be well,
    AJ

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    🙂

    webfactoryuk

    (@webfactoryuk)

    In short, I get all that. Just unusual I cant get the score off 0. I have now but not like the other 280 other websites I have 🙂

    webfactoryuk

    (@webfactoryuk)

    and not a dig at Autoptimize at all by the way. Will have to re-examine the plugins I am using on this build.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Still loading 17 JS files’ is closed to new replies.