No idea I’m afraid. What’s in your CSS optimization exclusion list?
I’ve not excluded anything. It’s all meant to be optimized…
then I guess a plugin (or your theme) is using Autoptimize to exclude those bhagwad ..
Let me do some testing and get back to you…
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 6 years ago by
bhagwad.
No, on my own site that file is aggregated …
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 6 years ago by
bhagwad.
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.
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?
wait, it’s not being preloaded … let me check.
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!
indeed … that might be a bug, I’ll get back to you on that ..
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?
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 6 years ago by
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 6 years ago by
bhagwad.