Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an option to combine dynamic css link with @import #121
That would be opening Pandora's box, dynamically generated (and/ or remote) CSS (and JS) can change based on context. Making dynamic CSS (or JS) static does away with any business logic implemented, thereby potentially breaking things. Google Fonts is a good example actually; when requesting the CSS Google sends different responses to different browsers, which would not work when having AO import the CSS, effectively breaking your site (or at least the font-rendering) in some browsers.
So no, I'm afraid I don't want go there. On the bright side; I'm working on "AO Extra", which is a separate plugin for now but which will be integrated in Autoptimize and optimizing Google Fonts will actually be one of the new features.
I just committed the Google Font optimization (choice between "remove", "combine fonts & link" and "combine fonts and load asynchronous with webfont.js") feature to AO Extra (it will integrate with your Autoptimize installation), so if you want download https://github.com/futtta/ao_extra/archive/master.zip and give it a spin maybe? :-)