Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Too Good To Be True? Rate Topic   - - - - -

 

Posted 08 January 2012 - 01:07 AM #1

I just found out something with cs cart and it looks " WOOOOW!!!!" if it works fine.
under config.local file there is a section to change the attributes of the config. MINIFY CSS????

i did it true and looks like all the css files are compressed into 1 file and obviously site runs faster.

Ok now if any Cs Cart experts around, can you guys please confirm that this is fine to do it and it actually does not break anything.

Thanks
CS 4.3.9

 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2348 posts

Posted 08 January 2012 - 09:52 AM #2

I've been using this for a wile and it works fine for me on 2 live stores.

When life hands you lemons, bring on the Tequila baby!


 

Posted 08 January 2012 - 11:01 AM #3

Where is this line to be modified?
thanks

 
  • BaDTaG
  • Senior Member
  • Members
  • Join Date: 01-Jul 11
  • 188 posts

Posted 08 January 2012 - 11:11 AM #4

Simply edit your config.local.php in root.

Line 76 edit to look like this


// Tweaks
$config['tweaks'] = array (
	'js_compression' => true, // enables compession to reduce size of javascript files
	'check_templates' => true, // disables templates checking to improve template engine speed
	'inline_compilation' => true, // compiles nested templates in one file
	'anti_csrf' => false, // protect forms from CSRF attacks
	'disable_block_cache' => false, // used to disable block cache
	'join_css' => true, // is used to unite css files into one file
	'allow_php_in_templates' => false, // Allow to use {php} tags in templates

VPS Hosting whit easy VPS control panel no technical skills required.
EDB Eksperten din online it forhandler

 

Posted 08 January 2012 - 05:56 PM #5

:grin: thank's Miss ..

 
  • wwgreen
  • Senior Member
  • Members
  • Join Date: 20-Nov 06
  • 411 posts

Posted 09 January 2012 - 03:41 PM #6

BaD - We are only using 2.2.2, so maybe our config is different by default, but we have only the first three lines included from your code, and none of the others. And, we have js_compression as false.

Also, we have the following 2 lines at the bottom of the file, not sure how different or why in a different area of file...

$config["tweaks"]["join_css"] = false; // is used to unite css files into one file
$config["tweaks"]["allow_php_in_templates"] = false; // Allow to use {php} tags in templates

Admittedly, I have not messed with any of these settings, nor do we have a huge and/or slow site. But if they improve performance for most, why haven't we heard more about this?

Thanks for any light anyone can shed.

v4.9.3sp1


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4798 posts

Posted 09 January 2012 - 04:55 PM #7

I changed the join_css to =true and
js_compression'=>true,// enables compession to reduce size of javascript files

site speed dropped by 10 points

John

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • wwgreen
  • Senior Member
  • Members
  • Join Date: 20-Nov 06
  • 411 posts

Posted 09 January 2012 - 05:10 PM #8

johnbol - your score dropped, as in, it loaded slower? Or you meant your load time dropped?

I changed js-compression to true and it speeded it up by 4-6 points, apples to apples. ?

I did not change any css setting, as I don't have that line in the section BaD talks about, just at the bottom of the file with double quotes... not sure why there or why double quotes. Can I change there, or do I need to add a line in the Tweaks section like BaD states?

Thanks again everyone, every little bit helps.

v4.9.3sp1


 

Posted 09 January 2012 - 06:49 PM #9

we have the 2.2.4 and it is right at the bottom where you can combine the css.
it only lowers the http request amount, so it would surely help on speed.
CS 4.3.9

 
  • hbtrading
  • Senior Member
  • Members
  • Join Date: 07-Oct 09
  • 204 posts

Posted 09 January 2012 - 07:07 PM #10

Perhaps one of you can help me....

When I set "'join_css" to true no CSS file gets loaded at all, perhaps some configuration with my server ? any help would be appreciated.

 
  • hbtrading
  • Senior Member
  • Members
  • Join Date: 07-Oct 09
  • 204 posts

Posted 15 January 2012 - 07:47 PM #11

To add to my previous post a CSS file is created in the var/cache/css which is loaded when the page is visited however the file is woefully incomplete and therefore no tangible CSS styling is applied to the page. Anyone have any ideas ?

 

Posted 16 January 2012 - 08:38 PM #12

Hi there,
This thread really interested me - I have an "F" from ySlow, but changing these lines broke my site. The entire style sheet went MIA. I changed the js_compression and the join_css both to true (they were false) and all of my designs & colors went away. Did I do something wrong? I am using the Artificial Casting template.

 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2348 posts

Posted 17 January 2012 - 09:23 AM #13

Do you already have gzip turned on, or are you running smartoptimizer? These will make much more difference then the tweaks posted here.

When life hands you lemons, bring on the Tequila baby!