Huge CSS File- make it smaller

Posted in: Newspaper
Post count: 56

Hi, i already used over 20 premium themes – but no one of them had a css file like the newspaper…

With over 28 000 lines my css file is almost 800kb (0.8 MB) Big.

1. I dont use the visual composer – any way to remove some parts from the main css file – or is there already nothing in it…?

2. I read in the theme description, that some parts only load on demand – i think this should be the same for the css file – but it is unbelievable huge – if possible.

best regards

Post count: 9544

Many large complex themes have one large CSS file for better caching, while some others break it down into 4-6 other files. One large file is better.

You can minify the CSS file very easily.

You might also see my long tutorial on site optimizations, in the theme docs > tutorials/DIY > best of forums.

In there I have links to how you can minify the main CSS file, and even the main JS file if you want.

With proper gzip/deflate running on your site, it will also be served as a very tiny file as gzip removes all the spaces anyway. But minification can easily be done.

Many theme devs don’t “start out” with minified version to make it easier for developers to EDIT/MODIFY the code, and read the comments; then those folks minify on “deploy” for a live site.

So, this is not that weird. All of the top 10 themes on ThemeForest have large amount of CSS — where do you think all those layouts and theme styles, features, options, etc. come from ? It’s all CSS.

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