Archived topic
CriticalCSS Functionality in GGP?
1 reply · Started by Ian on June 1, 2021
Are there any plans to roll out criticalcss functionality in GPP? Of course there is no expectation for GPP to actually be able to control other plugins but for those of use who utilize GPP heavily, I am hopeful that CriticalCSS could be a part GPP in the future. I see some theme developers beginning to add this to their themes so thought to check here.
Hi Ian,
In a sense, the inline CSS the theme adds is a critical CSS. (see generate-style-inline-css on your page source).
This is pretty complex to do. It's hard to determine a critical CSS that fits all users as even the hooked-in HTML above the fold through Hook or Block element will vary. Some users will add custom CSS. It's too difficult to account for that.
While we can "guess", that's already done by the generate-style-inline-css that is embedded right after the theme's defaults (main.css) which loads pretty early. (which pretty much is what critical css does.)