Archived topic
autoptimize unused css and chain linking
7 replies · Started by Micke on August 1, 2021
Hi!
I found another thread on Google where you suggested Autoptimize for site speed. And it's working great. But when I do Google page speed test, I get this unused css: /wp-content/cache/autoptimize/css/autoptimize_2ca4ddf4b26925a48fa82404836ffe92.css and chain linking request.
screenshot: https://ibb.co/L6YjT2f
Hi there,
Have you sorted this out? I've checked the site and ran it on Google PSI and I don't see the "reduce unused CSS" anymore.
As for the chaining, it's because of the redirection. The page is being redirected from an HTTP to https version of the site. This isn't something the theme controls.
Hi!
I managed to solve the reduce unused css. That's unfortunate for the chaining. But I have some issues now with CLS instead. with it being very inconsistent. Most of the time it has issues, but sometimes it shows 0.
mobile: https://ibb.co/6YtNMfG
desktop: https://ibb.co/pbWccbN
Tried pagespeed a few times now. It's mostly desktop that have issues with CLS.
Is this something the theme can control/fix?
Hi there,
the theme itself has no CLS related issues.
CLS occurs when CSS is deferred from loading - ie. loaded after the initial content is displayed. And the most common reason for this is when CSS is optimized eg. removing unused CSS, creating Critical CSS options.
What difference to the PSI scores did 'reducing the Unused CSS' actually make to site performance?
Hi!
Thanks for pointing that out David! I turned off the settings in WP rocket that removes unused CCS and the CLS is close to 0 now. Thanks a lot!
The only thing preventing me from getting a green score on mobile is the chain linking: https://ibb.co/M7f9P2h
/wp-content/cache/autoptimize/css/autoptimize_0b64e6c0b33750cb2dc0a50b1426203b.css
Do you have any idea how I can fix this?
You may want to try NOT combining the CSS files... with HTTP2 several small CSS files will load faster then one larger file.
Thanks for the help David, got it to 100 on both mobile and desktop now! Thanks a lot! :).
Awesome - glad to hear that!