Good but counterproductive in some areas
-
UPDATED – Thanks @thinkalon for your help.
I can now recommend Jetpack Boost as a free critical CSS generator that can be combined with free caching and optimisation plugins – Rivaling premium systems like WP-Rocket, Autoptimize and Nitro.
I already apply a high level of optimisations to my websites. But I observed the following on a simple WP site with a page builder theme.
Critical CSS generator actually works BUT….
What this did was remove the renderblocking warning in Lighthouse.It also improves the FCP score to a <1s on desktop and mobiles.
The LCP score did not improve for my web system but this is because an image is normally served above the fold on both desktop and mobiles which Google Web Vitals dislikes.
The field data shows a clear pass for LCP so not an issue I am concerned about anymore.
Extra Critical CSS and preloads added via functions.php
The FCP occured so early that it created a CLS shift. I always manually add preloads for fonts. I had to set the priority to -1 so they load before Jetpack Boosts Critical CSS. To prevent a CLS shift – This included @font-face with fonts set to fallback so there is no visible fontswap. I also set font sizes and a few other critical CSS items before Jetpack Boost just to make sure they appeared as soon as possible.Defer JS
Other scripts already deferred by standard setup.
This didnt really do anything so not needed with my setup. Scripts already moved to footer by other plugin.Lazy Load
Opted to use the Lazy Load Module in EWWW WebP Plugin instead for compatibility.
Any lazy load or JS method of serving WebP will reduce the TBT score as it loads an additional script. But the overal score improved as a result.This plugin as been the icing on the cake for an already well-optimised system.
- The topic ‘Good but counterproductive in some areas’ is closed to new replies.