|

Any thoughts on gZIP compression and Cs-cart ?
Posted 22 November 2009 - 06:21 PM #21
As for Pingdom, I have used it for a while now. I feel it is pretty accurate. I just did a test a minute ago and I had a 6.3 second load time.
One thing I have just done was remove my background image. By removing the image and just having a color I have reduced almost 2 seconds off of my load time. I'll have to look at my other images now. I noticed that my free shipping banner is 71K which is the biggest image on my page. This banner is an animated gif so maybe I'll look at either changing formats or just not having it animated.
Do you know which format would be a smaller size, but still allow the animation?
Definitely, one of the biggest loads are my style sheets. I think combined they are something like 180 K. I really need to look and see how I can reduce this. It would be nice to get my total style sheets to below 100 K, but I don't know if that is possible with CS-Cart.
I also took a look at your speed post a while back. What type of server are your running on? I asked my host about the settings you are talking about and he told me that if I did the same thing, I would probably crash my server.
I am using a VPS Cloud system with CyberLNC. Basically, for everything here, it is a base VPS system. I am sure that if I upgraded the server to the next level I would see a difference in load time and maybe even be able to do what you did, but unfortunately I don't have it in my budget to upgrade quite yet. Maybe after some more sales I'll do it.
Anyways, thank for the tips though,
Brandon
Posted 23 November 2009 - 06:47 PM #22
I think you will find that once the SmartOptimizer runs for a few days - it will cache more and more of the css etc. I don't know why, but when I dump my own cache and start fresh, it seems to take a few days for everything to be re-cached, and reduce the load even farther. (Its one of those... don't understand everything about it, but it works, so why try, ...things)
As far as a host goes - I have been a fan of dedicated HostGator boxes for several years and have *many* dedicated boxes through them. They manage just about everything as far as updates etc, and I have heard many horror stories about them over the years... but they have never done wrong by me in the past 4-5 years. I have also used many others... so its really just a matter of preference and features.
The box itself is a dual core Xeon system with 4gigs of ram - Also - there will never be more than 20-25 sites on it, all from the same company - so its fairly easy to throttle resources to the sites that need it the most. (Hostgator.com/dedicated.shtml - Standard package)
In all - I have 14 dedicated boxes with different client sites on them, as well as several shared hosting plans I use for various SEO related things (separate accounts for traffic generation, articles, inlinks, etc) The hosting bills are all paid by clients, so the cost is passed on.
As far as image size and animation goes, its really hit and miss on finding the right balance of quality versus size - if you ever find it, please let me know also!

CS 2.08 - Optimized for Speed!
--------------------------------
Posted 23 November 2009 - 09:39 PM #23
Out of curiousity, how big will the cache grow to?
I have been messing around with my images and css. The site is loading faster now. According to Pindom I have the site down to 390.8 K and is loading at an average of 5.3 seconds. It also scores a B with Yslow, so I guess I am making progress.
Thank you for the tips.
Brandon
Posted 25 November 2009 - 06:18 AM #24
Pasting this code at the beginning of my .htaccess file breaks the site.
In my case it has to be below the DirectoryIndex line, any idea why? This is my .htaccess before adding the optimizer code.
DirectoryIndex index.html index.php <IfModule mod_rewrite.c> RewriteEngine on # Some hostings require RewriteBase to be uncommented # Example: # Your store url is http://www.yourcompany.com/store/cart # So "RewriteBase" should be: # RewriteBase /store/cart RewriteBase / RewriteCond %{HTTP_HOST} ^livingcontemporary\.com [NC] RewriteRule ^(.*)$ http://www.livingcontemporary.com/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php?sef_rewrite=1 [L,QSA] RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.* RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteRule . index.php?sef_rewrite=1 [L,QSA] </IfModule>
Even then if its below the first line it breaks my SSL logo images. Anyway to enable this and not have it cache images? Or at least make exclusions?
Posted 25 November 2009 - 06:27 AM #25
Funny thing is though, is that it doesn't work on my localhost and only on my live site.
What do you mean by it breaks your SSL logo images? I use the Comodo image and it works fine.
I doubt this was any help, but I hope you figure it out.
Brandon
Posted 25 November 2009 - 06:56 AM #26
I assume its some sort of security thing and the optimizer is affecting it.
Posted 25 November 2009 - 07:09 AM #27
<a href="http://www.instantssl.com" id="comodoTL">Comodo SSL Certificate</a> <script language="JavaScript" type="text/javascript"> COT("http://www.saltwatertogo.com/images/cot.gif", "SC2", "none"); </script>
To:
<a href="http://www.instantssl.com" id="comodoTL">Comodo SSL Certificate</a> <script language="JavaScript" type="text/javascript"> COT("https://www.saltwatertogo.com/images/cot.gif", "SC2", "none"); </script>
This is the part right before the </body> tag.
I did some checking and by changing this back to http I get an error with the cache. I don't know if it matters if it is https, but it works for me.
I hope this helps,
Brandon
Posted 25 November 2009 - 07:17 AM #28
Ive been through that issue before...

Edit: On a side note Im going to move the icons out of my home directory and into the image directory like you have yours and see if that fixes the issue.
Edit2: Its working now, but I moved 1 of the 2 images to see if that was the issue and they both work, so I guess not. I just pasted the code at the end of the .htaccess like you and its running great.
Posted 28 November 2009 - 09:29 PM #29
After installing smartoptimizer and also optimizing my database through the Cs-cart admin panel, my new web site is flying

Posted 01 December 2009 - 08:53 AM #30
All is amazing.
But how to minify smarty result?
How to delete duplicating symbols [\r|\n|\t] in html?
Posted 01 December 2009 - 10:47 AM #31
i noticed that adding the gzip to the htaccess causes the my account page to break
if your already running the optimizer ...
There are some rendering troubles with gzip under Internet Explorer 6 & 7 with my website... Apparently, these browsers can't handle gziped CSS...
You can test the rendering of your webpages under many browsers for Windows, Linux, Mac, BSD with these services:
http://forum.cs-cart...read.php?t=8801
Lee Li Pop
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual
Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!
Posted 01 December 2009 - 02:12 PM #32
I am not seeing any problems in IE6 or IE7. I am using http://www.my-debugb...Tester/HomePage to test my pages.
David
Posted 01 December 2009 - 02:41 PM #33
I use several systems at different locations, and several browsers to test - no display issues on my end on either the live or beta sites.
M
CS 2.08 - Optimized for Speed!
--------------------------------
Posted 02 December 2009 - 06:38 AM #34
Thanks for advice. So, I'm bad

I will test again...
Hummm... Congratulations for this thread and your succeed implementation!
Lee Li Pop
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual
Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!
Posted 05 December 2009 - 11:30 AM #35
Done and working!
BUT...
Please, check this directory:
smartoptimizer/cache
And compare file size of your CSS.GZ Vs. your original CSS file.
My CSS.GZ file was bigger than my original CSS.
I fixed like this:
1 - Download your original CSS file (ie. style.css)
2 - Compress it to TAR.GZ (ie. styles.css.gz). You can do it with Windows freeware 7-zip
3 - Upload your new CSS.TAR.GZ file on your server (smartoptimizer/cache)
4 - Rename the original SmartOptimizer CSS.GZ file (ie. rename (example) "so_e94e15cd2e8f7d7a7t0f507nd9eafg04.css.gz" to (example) "so_e94e15cd2e8f7d7a7t0f507nd9eafg04-1.css.gz"
5 - Rename your new CSS.TAR.GZ file to the original SmartOptimizer CSS.GZ file (ie. rename "styles.css.gz" to (example) "so_e94e15cd2e8f7d7a7t0f507nd9eafg04.css.gz"
Test.
Now, my CSS.GZ is 3 time smaller than my original CSS, and 4 time smaller than the original CSS.GZ.
Lee Li Pop
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual
Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!
Posted 07 December 2009 - 06:27 AM #36
i tried it out on my site ....
but if i do a gzip test at :
http://www.gidnetwor...s/gzip-test.php
it says the page is not compressed .... not sure if it fully works or not ...
Yes, me too, my CSS + JS CS-Cart scripts are compressed.
But, my HTML CS-Cart pages are NOT compressed...
While my Joomla + Vitrumart are fully compressed (HTML + CSS + JS)

You can check out compression there:
http://www.gidnetwor...s/gzip-test.php
And there in "Page Objects > Type > HTML" table results:
http://www.websiteop...rvices/analyze/
How are yours?
Lee Li Pop
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual
Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!
Posted 11 December 2009 - 11:21 PM #37
Anyway to remove the admin area from smartoptimizer?
David
Posted 11 December 2009 - 11:26 PM #38
Has anyone experience the Admin area slowing down after installing smartoptimizer?
No Admin area slowdown experienced on our end.
You may want to try deleting the contents of cache folder within smartoptimizer & let it reload.