- This topic has 10 replies, 6 voices, and was last updated 1 year, 11 months ago by Leo.
May 11, 2019 at 1:28 pm #896528Simon
Just a really quick question. From what I have read and understood, integrating a child theme seem simple and straightforward. Honestly I don’t see any disadvantage to doing it re performance or anything?
My custom CSS styles have gradually been growing and I am now looking at over 600 lines of custom CSS in the wordpress “additional css” section under appearance.
I have a feeling it would be best for me to move this to a child theme now right? There are performance advantages to doing that at this size, if I am not mistaken?
Thanks in advance.
SimonMay 11, 2019 at 5:19 pm #896630TomLead DeveloperLead Developer
The main advantage is that the child theme will add a style.css file to your website which can hold your CSS. Since it’s a static file, your browser will cache it. CSS output in the
<head>(like Additional CSS) isn’t cached by the browser.
There shouldn’t be any disadvantages to using a child theme (other than the extra HTTP request).May 11, 2019 at 10:12 pm #896700epickenyan
Hi Tom. So even CSS in your simple CSS plugin isn’t cached?May 12, 2019 at 8:15 am #897028TomLead DeveloperLead Developer
Since the CSS is in the database, WordPress caches it. In small amounts, something like Simple CSS is better for performance than an additional HTTP request with minimal CSS.May 12, 2019 at 9:46 am #897118Simon
Moving to the child theme was sooo easy.
SimonMay 12, 2019 at 12:16 pm #897213epickenyan
So, Tom, you recommend simple css plugin over the customizer>additional css? But I only have like 150 lines of minified css code.May 12, 2019 at 12:30 pm #897223LeoStaffCustomer Support
Simple CSS and Additional CSS are basically the same – Simple CSS was created well before WordPress added Additional CSS field.
I personally still like Simple CSS better as I prefer the editor (colors) over Additional CSS.May 13, 2019 at 6:47 am #897787FunkyCss
I am lurker on this topic cause it makes me interested as well ,
I am puting day by day new CSS to my GP site , and i am thinking of jumping in a Child Theme as well,
I have seen a BETHEME site ( lol ) that is a child theme , and is Super Fast ! and i am thinking what is the best practise as well for my site .May 13, 2019 at 6:51 am #897921DavidStaffCustomer Support
Child Themes are only necessary if you’re editing theme templates or adding a lot of CSS or custom functions. If you think you’re going to being doing lots more customizations then yes installing a child theme and moving any CSS or PHP functions to that are the best way forward. We provide details on how to here:May 13, 2019 at 12:42 pm #898234epickenyan
So I assume if CSS in the additional CSS area is not cached, then the css in simple CSS plugin is also not cached as well?May 13, 2019 at 12:44 pm #898235
- You must be logged in to reply to this topic.