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 ..
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.
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?
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
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 🙂
and not a dig at Autoptimize at all by the way. Will have to re-examine the plugins I am using on this build.