Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bfintal opened this issue Oct 15, 2024 · 1 comment
Open

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

bfintal opened this issue Oct 15, 2024 · 1 comment

Comments

@bfintal
Copy link
Contributor

bfintal commented Oct 15, 2024

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

  • is_singular() when can this become false
  • Front page when using a static page should make the above if statement pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@bfintal and others