I was going to reply no, but as
- one can set the exclusion list via the API (or create a a allowlist instead to specify which CSS it to be optimized)
- one can change the “injection point” of the aggregated CSS via the API
the answer is yes 🙂
relevant filters; autoptimize_filter_css_allowlist, autoptimize_filter_css_exclude and autoptimize_filter_css_replacetag ..
let me know if you need more info! 🙂
Thanks! I managed to do something 🙂
It is a pity, of course, that it is not possible to create several injection points: there would be a certain set of styles for each.
-
This reply was modified 3 years, 3 months ago by
Andreslav.
It is a pity, of course, that it is not possible to create several injection points: there would be a certain set of styles for each.
afraid that indeed is not possible.
Thanks! I managed to do something 🙂
happy to read so, feel free to leave a review of the plugin and support here! 🙂
Left a review 🙂
Note for those who follow the same path as me: if you set “allowlist”, then “dontmove” is ignored. Also, to group inline styles, you need to pass true to autoptimize_css_include_inline.