Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14052

Frank Goossens on "Autoptimize moves inline css into external file"

$
0
0

by default AO indeed aggregates all css, include inline styles, but that's a feature, not a bug :-)

now there are several ways to solve this:
1. use inline or "inline & defer"
2. exclude the pagebuilder CSS (e.g. using "#pc" or "#pgc", you should look for a unique string that is in each page that has pagebuilder CSS) by adding it to the comma seperated CSS optimization exclusion form field.
3. disable inline CSS aggregation using the API, cfr. example code in autoptimize_helper.php_example

All of that being said (written); it is likely that "aggregate inline CSS" (or JS) will be added as an option, replacing the "look only in head"-option (which is of much less use). But that's for Autoptimize 2.0 :-)


Viewing all articles
Browse latest Browse all 14052


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>