The cart already caches the pages. Why not also minify js and css?
That can save some space and time loading.
One might minify themselves JS.
Imagine it comes minified, it is a world of pain to modify it or even make sense of the code.
Not the same but there is a setting in the “tweaks” section of config.local.php:
[QUOTE]// Tweaks
$config[‘tweaks’] = array (
‘js_compression’ => false, // enables compession to reduce size of javascript files[/QUOTE]
Seems setting this to ‘true’ should provide some reduction in download time for all the JS.
Bob
[quote name=‘jobosales’]Not the same but there is a setting in the “tweaks” section of config.local.php:
Seems setting this to ‘true’ should provide some reduction in download time for all the JS.
Bob[/QUOTE]
I have been running our site with settings as this for 6-8 months:
// Tweaks
$config['tweaks'] = array (
'js_compression' => true, // enables compession to reduce size of javascript files
'check_templates' => false, // disables templates checking to improve template engine speed
'inline_compilation' => true, // compiles nested templates in one file
);
I can’t tell you how noticeable or even if there were actually any benefits, I only know our site can be considered very fast day in & day out.
I suggested it because most compressers remove comments. My css files have loads of comments.
Its nice to have a readable copy of css and js right there but have it compressed at runtime.
I take it the js_compression only compress stuff that uses {script=} ?
[quote name=‘Struck’]I have been running our site with settings as this for 6-8 months:
// Tweaks
$config['tweaks'] = array (
'js_compression' => true, // enables compession to reduce size of javascript files
'check_templates' => false, // disables templates checking to improve template engine speed
'inline_compilation' => true, // compiles nested templates in one file
);
I can’t tell you how noticeable or even if there were actually any benefits, I only know our site can be considered very fast day in & day out.[/QUOTE]
Are you using smartoptimizer script on top of this?
[QUOTE]Are you using smartoptimizer script on top of this?[/QUOTE]
Yes, also have smartoptimizer active.
You can vote to have this feature added in the Ideas forum:
[url]http://cscart.uservoice.com/forums/40782-general/suggestions/701544-cache-and-minify-js-and-css[/url]
Bob