Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

custom.css not getting compressed

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I am using jch_optimize with zenbase. I noticed that the following css files are being excluded form jch's cached gzip file.

Why are they being excluded? Is there a way to let them be included in jch's compression?

/templates/zenbase/css/custom.css
and
/templates/system/css/system.css

Sample page: www.modernmagic.com/blog.html
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
I'd check with the developer

Its not something I've used much and lots of JB users break their sites with it

Rob might now more and I will ask him if he has anything to add

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Paul,

Is there more compatible compression extension for JB templates?

Does everyone else not worry about compressing /templates/zenbase/css/custom.css and /templates/system/css/system.css ?
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Hi Jeff,

I'm not sure exactly how the jch plugin works, but you could always compress the file by hand using something like www.minifycss.com/css-compressor/

You could also add the css to the themes template.less file in the theme folder and have it compiled with everything else.

This is probably a question for the jch developers though. I'm sure they probably have a good reason for leaving out the system.css file if it's used on 99% of all Joomla sites.

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Thinking about it again, it's probably because the custom.css file is hard coded into the template to ensure it loads last and overrules any other styles.

So it's not added to the head of the document in the standard Joomla way which is probably how jch picks up the other files and manipulates the output.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
that makes sense.

I'm just trying to speed up the load time. If I could reduce the requests by eliminating the custom.css, it may help.
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Good luck with it

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers