Preload All JavaScript, CSS and Fonts
-
Is there a way to preload all JS, CSS and Fonts from within the Litespeed plugin, without directly editing the htaccess file and specifying files to be preloaded?
One of my client’s sites scored around 20 for performance in web.dev reports, using Elementor Pro together with a highly optimised Litespeed setup, Litespeed server, and Quic CDN. The Litespeed settings were as aggressive as can be, optimising it as much as possible.
Switching to Nitropack ups that score to around 95 right out of the box, with no special settings.
The key difference between the Nitropack and Litespeed plugins (as far as I can tell) is that Nitropack preloads all JS, CSS and font requests automatically. It also seems to delay loading JS until the page has fully loaded. Looking at GTmetrix, there’s just a handful of external CSS and WOFF file requests, with no JS requests logged (as these occur once the user interacts with the page).
If Litespeed could do this, it would be a major breakthrough. My client is obsessed with PageSpeed scores (not the be all and end all, but still important), and is amazed by the 75 point uplift by moving away from Litespeed. I don’t think it is necessary to switch and am sure Litespeed must be able to achieve similar results somehow.
By the looks of it, automatic preloading of all JS, CSS and font requests should make a significant difference to the PageSpeed score using Litespeed, with the option to load all JS once the page has rendered acting as the cherry on the top.
Is there a way to automatically preload all internal and external JS, CSS and font requests within the Litespeed plugin right now?
I have CSS/JS HTTP/2 Push enabled as well as deferring, minifying and combining all enabled.
- The topic ‘Preload All JavaScript, CSS and Fonts’ is closed to new replies.