Archived topic
Regenerate External CSS File? (Is that necessary)
5 replies · Started by Henry on August 24, 2020
With the latest version of GP Premium, there's an option to have an external CSS file. It's very easy to implement via appearance > customize > general however there is a dropdown option to "regenerate CSS".
Is this necessary to do?
Is this just for new CSS changes that are not rendering?
Thanks!
HI there,
Sorry are you referring to this option?
https://docs.generatepress.com/article/combine-css/
Or this option?
https://docs.generatepress.com/article/cache-dynamic-css/
Thanks, Leo - I am referring to the new feature, so apparently there is the faster loading of CSS in GP Premium?
The file is loaded externally? Is that correct? Just curious if I have to regenerate CSS?
Hi there,
When switching to External file - GP should automatically generate the file.
If it doesn't then hit the Regenerate CSS button. If you're not sure hit it anyway :)
Yes this can improve performance - as it removes the majority of the CSS that is traditionally inlined in the <head> of the theme. As an external file, it can be cached by the browser, so only loads ONCE on initial load. If you're using an Cache/Optimization plugin it can be combined as well.
Thanks David!
You're welcome