gambitph / Stackable

Page Builder Blocks for WordPress. An Amazing Block Library for the new WordPress Block Editor (Gutenberg).
https://wpstackable.com
GNU General Public License v3.0
329 stars 62 forks source link

CSS Inline Optimizer: Frontpage does not load optimized css styles #3353

Open bfintal opened 1 month ago

bfintal commented 1 month ago

In src/css-optimize.php, in the function load_cached_css_for_post:

if ( is_singular() && ! is_preview() && ! is_attachment() ) {

is_singular() can return false in the front page preventing the optimized inline css from loading.

Investigate