Hi,
the CSS file is way too big, if you ask me.
If I want to edit the file in browser, the browser collapses. Thats really not normal.
Untouched the css file has 478 kb. If I delete codes like woocommerce or bbpress, it still have 318 kb. And compressed the file is still 286 kb big.
My old theme css (HotTopix, on Themeforest too): 74 kb (uncompressed).
Is there anything you can do to reduce the size in future updates?
Thank you!
Yup. Just take all of that out of your style.css file which is what I do.
All those features you keep asking for need to have the code someplace. And better to have one big file, vs. having 10 different CSS files like some sites. That’s the whole idea behind “combining CSS” so only one file gets loaded/cached.
CSS larger for this theme vs hot topix (I use that also), is all those fancy visual composer modules and layouts; which is why you have 50 layout options vs the 3 or 3 with topix — apples to oranges. Why does a V8 engine use more gas has than a 4-cylinder ? Self explanatory – twice the cylinders.
No way for theme to easily generate different CSS and a nightmare for support (where is my WooCommerce CSS? Un, did you activate that option? Where is the option? In the CSS panel. Where is the CSS panel? Did you see the documentation? What is that?) etc. ๐
Just my two cents if we’re all going to chime in on this topic.
Upshot: tweak your site to remove those elements you don’t use, for best performance.
I did have conversation with Radu about what could safely be removed from the config file, also, such as require loading modules for bbpress if not using that. Never got to finishing that process due to the server CPU issues we had due to stupid VC memory leaks or whatever is up with that.
Personally I would prefer to have a MAGAZINE focused theme without all the bbpress, multisite and woocommerce stuff – but 20-30% of people buying this are “wanting” and perhaps “demanding” those features so they are in there (the Magazine theme got bloated from Oct 2013 to Jan 2015 due to this … annoying to me, personally — but this is a “one for all” theme, not a micro niche focused offering; or it would not sell in these competitive themeforest marketplace).
Happy Sunday. Ranting over (rant!!!!)… ๐
-
This reply was modified 11 years by
simchris.
Hi,
Also we deliver with the theme the less version of the style. There are all the css grouped and can be easily removed, erasing a single line for each piece of css.
http://screencast.com/t/t3rtWciT0TZe
Remove unnecessary less files(like woocommerce.less, bbpress.less, buddypress.less or smart-list.less if you don’t use or video-playlists.less ..etc..)
Then using Prepos you can compile the main.less file to built the style.css
Done ๐
Hope this help, is a little more easier like that then erasing hundreds of css lines from style.css
-
This reply was modified 11 years by
Marius.