Solved Templates

page speed extra.css

Asked by Martin Seidl 4 years ago Last activity 4 years ago

Hi Team,

if we create extra styles we ussually use custom or extra.css, which always worked for me. But I ask myself, if I try to optimize page speed of the website, wether the extra css file, which is not combined with the other css files (if we combine styles will not work) for example with the tool JCH Optimize, creates more loading time. Can we somehow, instead of creating extra css file, add the extra styles into the template.css and thus avoid loading time. But will it be overwritten after some update?
To make it short: how to avoid too much loading time when we want to modify styles of template?
thnx

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
4 years ago · edited

Hi Martin,

you cannot add into template.css - becuase that file is overriden, so your changes will be deleted.

One extra css file is not a problem (it's small one), if you check Speed testers you would see that one huge compressed css file (that collect all) can be a bigger "issue".

If you don't have many CSS lines, maybe consider using < style > ... < / style> that will be loaded before end < / body > or just inside Custom CSS field.

1 more reply

Martin Seidl Asked this

thnx Paul!

Log in to reply.