How to split CSS

Posted in: Newspaper
Post count: 23

Hi,

I just start to use your theme – briliant!. I’m wondering if there is an option to split CSS file for each single template? I use standard template and I don’t need CSS for 12 templates. Did You think about spliting CSS for each template separately?

Why? Because now CSS has 866KB and it’s to heave somehow. One CSS for one template would be much lighter.

Thanks!

Post count: 285

If you remove unnecessary code and compress you’ll have less than 300Kb

Post count: 23

yeah I did use https://unused-css.com/ to remove unnecessary code but it crash site :/

You wrote about those sections in css file? Ex.

/* ——————————————————————-
Style 5
———————————————————————- */

Post count: 285

Doesn’t matter because is a .css comment line.

I have not used any tools, I have clean manually.

Post count: 23

Yeah I know that is css comment line I meant that if I use Style 1 (= template 1) I should remove all others Style’s from css file ; )

Post count: 285

If you want a light style.css, yes. (take care when you make a new update)

Post count: 23312

Hello marlonk,

Please notice that you can remove all the code which you do not use it but as you known, for each update the style.css will be in full version. So, another alternative for you would be to use the GZIP compression, according to this topic here -> https://gtmetrix.com/enable-gzip-compression.html

Thanks for your understanding!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.