Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    No idea I’m afraid. What’s in your CSS optimization exclusion list?

    Thread Starter bhagwad

    (@bhagwad)

    I’ve not excluded anything. It’s all meant to be optimized…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    then I guess a plugin (or your theme) is using Autoptimize to exclude those bhagwad ..

    Thread Starter bhagwad

    (@bhagwad)

    Let me do some testing and get back to you…

    Thread Starter bhagwad

    (@bhagwad)

    Created a staging copy and disabled every single plugin (except Autoptimize) and also changed the theme.

    Still the same! This CSS file is not being optimized: wp-includes/css/dist/block-library/style.min.css

    Can you check your own site with the latest copy of Autoptimize and see if this file is being preloaded on your installation?

    Edit: The only thing that helps is if I check the “Aggregate all linked CSS-files” option. By default, I don’t want it to aggregate the CSS. Still, it should work even with the checkbox off right?

    Could you perhaps check it on your own installation and see if it’s working?

    • This reply was modified 4 years, 5 months ago by bhagwad.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No, on my own site that file is aggregated …

    Thread Starter bhagwad

    (@bhagwad)

    Could you try unchecking the “Aggregate all linked CSS-files” option? Because that’s what I use. If I check the box, the file is processed.

    I just want to preload the file, not aggregate it.

    • This reply was modified 4 years, 5 months ago by bhagwad.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ahh, OK, now I understand; when “aggregate linked CSS-files” is off, then AO will not act on files that are already minified (based on filename), so it will indeed leave wp-includes/css/dist/block-library/style.min.css be … so; expected behavior.

    Thread Starter bhagwad

    (@bhagwad)

    Can confirm the issue on another website of mine: https://www.bhagwad.com/blog/

    Basically, with the “Aggregate all linked CSS-files” box unchecked, it will skip preloading some CSS files, notably this one:

    /wp-includes/css/dist/block-library/style.min.css

    Probably a bug, since I see it on two different websites?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    wait, it’s not being preloaded … let me check.

    Thread Starter bhagwad

    (@bhagwad)

    I see. Now I understand.

    But if AO leaves these files, then they won’t be preloaded right?

    I guess I’ll have to settle for aggregation then!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    indeed … that might be a bug, I’ll get back to you on that ..

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, this wasn’t very easy, but I think I have it fixed with this commit. Can you download the Beta zip here and replace 2.7.2 with it to test?

    Thread Starter bhagwad

    (@bhagwad)

    Hi, sorry for the late response – didn’t see your message. I’ll check out the beta version and get back to you!

    • This reply was modified 4 years, 5 months ago by bhagwad.
    Thread Starter bhagwad

    (@bhagwad)

    Yes, it seems to be working! The wp-includes/css/dist/block-library/style.min.css file now has the rel=’preload’ attribute.

    Awesome fix, thank you so much :). Your plugin is hands down the best “one-stop” optimization tool for WordPress.

    • This reply was modified 4 years, 5 months ago by bhagwad.
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Autoptimize Skips Some CSS Files?’ is closed to new replies.