CSS way too big

Posted in: Newsmag
Post count: 217

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!

Post count: 217

Okay, the spell checker caused the slowness. Still the file is too big.

It woul be great to include the stuff dynamically, that you actually use. E.g. not all users need the Woocommerce and BBpress stuff.

Post count: 14

+1 me too XD

Post count: 44

+1. Don’t need buddypress, bbpress, woocommerce

Post count: 9544

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.
Post count: 1291

Hi,

I’ve added this suggestion on the list, we’ll try add a slim version of css (no woocommerce, bbpress, buddypress) in a future update.

Thank you, Emil G.

Post count: 9544

That would be awesome!!! ๐Ÿ™‚

Post count: 3343

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.
Post count: 9544

oh… doh. Yes! Stupid me. Totally forgot about that !!!

That *is* the easier way to do that ๐Ÿ™‚

Thanks, Marius.

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