Home › Forums › Support › Remove css from html › Reply To: Remove css from html
Any articles/sources for that? I’d be very interested in reading.
It’s my understanding that search engines only care about content.
If the code was in the body then I would agree, but it’s not.
There’s little difference between including the style in the head vs linking to an external file.
Here’s a good topic on it: http://stackoverflow.com/questions/2240481/does-inline-css-and-javascript-really-affect-site-seo
When people refer to “inline CSS”, they mean something like this: <p style="background-color-red;color:white;">My paragraph</p>
Too much of that is bad.
I should note that the current method is the go-to for WordPress developers where the user writes the CSS with their options.
There are a couple options for writing this CSS to files, but they hurt performance.
I’m always looking for the best of both worlds – CSS in an external file that doesn’t hurt performance.
For anyone who wants this CSS in an external file, I suggest using this plugin: https://en-ca.wordpress.org/plugins/autoptimize/
- This reply was modified 7 years, 10 months ago by Tom.
- This reply was modified 7 years, 10 months ago by Tom.