Archived topic
CSS with Element hook instead of simple CSS plugin
3 replies · Started by Adrien on April 15, 2021
Dear Team,
I have a question regarding speed optimisation and CSS good practice.
I uninstall the plugin of Tom called simple CSS because my clients are worried of the fact that it hasn't been updated since long time (even if it still works perfectly).
Hence as a replacement I code my main CSS inside my child theme CSS file AND when I have CSS for specific pages only, I create an element hook and insert my CSS styles inside a <script> tag.
Is this correct or wrong purely in terms of good practices and speed?
Thanks for your guidance. Adrien
Hi there,
thats a perfectly fine and valid way of inserting your CSS.
Thank you very much David for your guidance! I learn everything from you here. GP Team is a gold mine of know how.
Glad we can be of help!