Archived topic
Too many lines of CSS. Should I use a child theme?
5 replies · Started by Shaun on February 4, 2019
Hey David, Leo and Tom, so I just realised I have about 1000 lines of CSS in SimpleCSS (not counting comments). Is this slowing my site down, and if so, is a child theme recommended?
Hi there,
i would recommend a child theme once you hit around 400+ lines of CSS.
The advantages is that style sheet can be optimized, requested once and cached by the browser so you may notice a slight improvement after first load.
Thanks David. I looked through the tutorial on GP's site. If I switch, I'm guessing I won't lose any changes in Simple CSS right? I can just copy them over to a new CSS stylesheet (i.e. style.css)?
That's correct Simple CSS will still hold the code.
And yes they get moved into your child theme style.css
Make a backup of the site first, just to be safe.
Great, thanks so much for your help David! :)
You're welcome