Speed Up and Optimise CS-Cart Version 3

[quote name='Jayhawk' timestamp='1357923902' post='152657']

That did not change anything

[/quote]

Are you getting the server error:-[list]

[]After implementing BOTH .htaccess rules and SmartOptimizer?

[
]Implementing .htaccess only?

[*]Implementing SmartOptimizer only?

[/list]


htaccess change only
[quote name='StellarBytes' timestamp='1357927201' post='152660']

Are you getting the server error:-[list]
[*]After implementing BOTH .htaccess rules and SmartOptimizer?
[*]Implementing .htaccess only?
[*]Implementing SmartOptimizer only?
[/list]
[/quote]

I make this optimalizations (htacces and config) and my site start working faster.

Then I contact with my sever admins and they dosent recomend me to instal smart optimizer, they tell that it is good when You have small traffic on sites butwhen You will be have more users the site will be work much slower.

They tell me to I need to install nginx if I woul like have better site optimalization.

I install nginx and my results on gtmetrix was E, C now I have B, B.

[quote name='kjpp' timestamp='1358071461' post='152720']

I make this optimalizations (htacces and config) and my site start working faster.

Then I contact with my sever admins and they dosent recomend me to instal smart optimizer, they tell that it is good when You have small traffic on sites butwhen You will be have more users the site will be work much slower.

They tell me to I need to install nginx if I woul like have better site optimalization.

I install nginx and my results on gtmetrix was E, C now I have B, B.

[/quote]

Using SmartOptimizer, some PHP parsing occurs per request. This means the CPU overhead is higher than serving uncompressed JavaScript and CSS, hence the advice that it won't be any good for “high traffic” sites. I cannot find any split testing results between “low”, “average” nor “high” traffic sites with and without SmartOptimizer. Unless your server CPU came from the 90's, I don't think you shall have any problems.



I'm going to re-build my server today, first of all to compare the default install of the .htaccess/SmartOptimizer instructions provided in the OP and the default install of nginx with x-cache.



One thing I hope to prove, despite xginx and x-cache needing an extra layer of server access and still only the ability to read and re-write instructions to successfully install, is that there isn't a great deal of difference unless the server is further optimised for nginx/x-cache as per the server hardware specification.

The biggest hit I take with GTMetrix is because javascript is not gzip compressed.

Does one usually compress javascript?

This is the option I took in the config file:

[color=“#008800”]'js_compression'[/color] [color=“#666600”]=>[/color] [color=“#000088”]true[/color][color=“#666600”],[/color] [color=“#880000”]// enables compession to reduce size of javascript files[/color]

And the rest of my files (html, php) are gzip compressed - GTMetrix gives me an 'E' for gzip compression because of the 30 or so js files.

If js_compression is set to 'true' then you shouldn't be having this problem. Check your sites status below:



Check gzip compression status



I get score of A (99%) for gZip bt GTMetrix. Minify addon JS and it produces a score of 100% quite easily.

Stellar,

If I cannot install the smartoptimizer and I only want to use .htaacess and config.local.php

Can I do this? and is this already enable gzip compression?

yes you can do this but for gzip you need to check if it can be enabled



John

It Works… :grin:

Thanks…

Tried the changes in the Config.local.php file and I lost the top back category bar so I went back to original file any idea what could have caused this?

Presumably you cleared your site cache after making the config.local.php changes? (yourdomain.com)

I think cs-cart need improving the cache system , maybe more faster

[quote name='StellarBytes' timestamp='1358821097' post='153295']

Presumably you cleared your site cache after making the config.local.php changes? (yourdomain.com)

[/quote]

That worked thanks

Warning : Do not hire tweaky.com they can not help with speed and CS-Cart. Please learn from my mistake.


[quote name='Onkel_Sid' timestamp='1355436022' post='151113']

Great tips.



For people like myself - that are not so used to messing with the .htaccess-file i see that GTmetrix recomends this site:



[url=“https://www.tweaky.com/gt”]https://www.tweaky.com/gt[/url]



They do much of the stuff you are listing in your post for $39.

[/quote]

I can't praise enough Stellar Bytes Tweaks. I went from a GTmetrix Grade of F & D to B & B. CS-Cart 3 is way to slow without these tweaks.

[quote name='Compact Discount' timestamp='1359068257' post='153587']
Warning : Do not hire tweaky.com they can not help with speed and CS-Cart. Please learn from my mistake.
[/quote]


Sorry to hear of your bad experience, I contacted them shortly after reading that post recommending them and they said they couldn't do anything for me. Why they then took you on, I don't know.

Glad to hear you're enjoying the benefits of these tweaks, hopefully I'll be refining these in the next few days. The default SmartOptimizer install is not ideal and could benefit from some changes. I'll post that up once it's done.

So here it is , finally created CDN Addon in which you will upload Skins folder and root images folder to your CDN provider and define thier path in our addon all css,js are combine to speed up the page and all will be hosted at your choice of CDN Provider, this addon is for Cs-Cart v3.x or 3.1, I will send you all the demo link.

[quote name='tigerbabba' timestamp='1359209490' post='153712']

So here it is , finally created CDN Addon in which you will upload Skins folder and root images folder to your CDN provider and define thier path in our addon all css,js are combine to speed up the page and all will be hosted at your choice of CDN Provider, this addon is for Cs-Cart v3.x or 3.1, I will send you all the demo link.

[/quote]



Which CDN you are using. Yes i want to see the demo… is this commercial addon ?

Yes, a CDN is one of very many recommendations for improving site speed, but a sales pitch in the middle of this thread doesn't seem appropriate, does it? You should be creating your own thread for sales pitches.



Anyhow.



Time for a quick update.



I've optimised the .htaccess and SmartOptimizer 1.8 with some further tweaks.



Before installing this revised .htaccess and SmartOptimizer, I ran a GTmetrix scan 5 times to produce average load times of the site.



Page Load Time: 7.13s

Page File Size: 896kb

Total Number of Requests: 61



Page Speed Grade: F (41%)

YSlow Grade: D (66%)



After installing the .htaccess rules and revised SmartOptimizer, flushing the site cache and re-scanning again another 5 times to produce an average page load time:



Page Load Time: 2.79s

Page File Size: 480kb

Total Number of Requests: 50



Page Speed Grade: A (95%)

YSlow Grade: B (85%)



I'll upload the revised versions in the next few hours.

Can you let us know your optimization in .htaccess and smartoptimizer file ?



Can you also tell us how can i give defar parse on these links





http://domain.com/lib/js/jqueryui/jquery-ui.custom.min.js (142.1KiB)
http://domain.com/lib/js/jquery/jquery.min.js (77.4KiB)
http://domain.com/ (3.8KiB of inline JavaScript)
http://domain.com/lib/js/tools/tooltip.min.js (2.9KiB)
http://domain.com/skins/plug_buy/customer/addons/iecsp_lazy_loader/js/lazyload.js (1.7KiB)
http://domain.com/lib/js/appear/jquery.appear-1.1.1.js (1.5KiB)
http://domain.com/addons/magiczoom/func.js (358B)
http://domain.com/var/cache/templates/js/core1.js (348B)
http://domain.com/addons/magiczoom/ajax_packed.js (347B)
http://domain.com/addons/magiczoom/core/magiczoom.js (347B)
http://domain.com/var/cache/templates/addons/autosuggest/js/func.js (347B)
http://domain.com/var/cache/templates/addons/buy_together/js/func.js (347B)
http://domain.com/var/cache/templates/addons/esp/js/func.js (347B)
http://domain.com/var/cache/templates/js/editors/tinymce.editor.js (347B)
http://domain.com/var/cache/templates/addons/banners/js/slider.js (346B)
http://domain.com/var/cache/templates/addons/news_and_emails/js/func.js (346B)
http://domain.com/skins/plug_buy/customer/js/scripts.js (155B)