Load Time Speed Optimization Guide Needed

Also, here are our specific working settings for the /smartoptimizer/config.php file used to fine tune Smartoptimizer:


```php
/*

  • SmartOptimizer Configuration File

    */





    //base dir (a relative path to the base directory)

    $settings[‘baseDir’] = ‘…/’;



    //Encoding of your js and css files. (utf-8 or iso-8859-1)

    $settings[‘charSet’] = ‘utf-8’;



    //Show error messages if any error occurs (true or false)

    $settings[‘debug’] = false;



    //use this to set gzip compression On or Off

    $settings[‘gzip’] = true;



    //use this to set gzip compression level (an integer between 1 and 9)

    $settings[‘compressionLevel’] = 9;



    //these types of files will not be gzipped nor minified

    $settings[‘gzipExceptions’] = array(‘gif’,‘jpeg’,‘jpg’,‘png’,‘swf’);



    //use this to set Minifier On or Off

    $settings[‘minify’] = true;



    //use this to set file concatenation On or Off

    $settings[‘concatenate’] = true;



    //separator for files to be concatenated

    $settings[‘separator’] = ‘,’;



    //specifies whether to emebed files included in css files using the data URI scheme or not

    $settings[‘embed’] = true;



    //The maximum size of an embedded file. (use 0 for unlimited size)

    $settings[‘embedMaxSize’] = 5120; //5KB



    //these types of files will not be embedded

    $settings[‘embedExceptions’] = array(‘htc’);



    //to set server-side cache On or Off

    $settings[‘serverCache’] = true;



    //if you change it to false, the files will not be checked for modifications and always cached files will be used (for better performance)

    $settings[‘serverCacheCheck’] = false;



    //cache dir

    $settings[‘cacheDir’] = ‘cache/’;



    //prefix for cache files

    $settings[‘cachePrefix’] = ‘so_’;



    //to set client-side cache On or Off

    $settings[‘clientCache’] = true;



    //Setting this to false will force the browser to use cached files without checking for changes.

    $settings[‘clientCacheCheck’] = false;

    ?> ```

I’ll try again. However, not sure what will be the speed advantage already I have maxed to memory mysql and file cache settings on the server… If it helps like 6%, question, is it worth it? Will a user notice 0.3s faster response?

Your call, not as if I own stock in Smartoptimizer or anything, just thought I might be able to help. :smiley:



“If” you are able to get it operating properly, pay close attention to the initial first page load time when entering your site, that is where you will most likely see the greatest benefit! (And if that does not make any difference to you, then there simply is no hope for you…) :smiley:

Hi Struck,



I have the exact same config for smartoptimizer as you. I have certainly noticed a significant benefit across all pages. Works very well for me.



All in all, its worth testing various configs with a web speed test site.

[QUOTE]Hi Struck,



I have the exact same config for smartoptimizer as you. I have certainly noticed a significant benefit across all pages. Works very well for me.[/QUOTE]



Hello Customfx,



What I have found is that it has an extreme benefit for your initial page load when visiting a CS-cart site. If you ever need to reconfirm to yourself as to whether it is needed, uninstall smartoptimizer and watch how slow the first page visit becomes (it is rather painful)…:wink:

True,



I was using DEFLATE before, so page load time was not too bad. SmartO + Zeke’s thingy-wingy just made it that much better.



Without SmartO or deflate, it’s almost go get a coffee while she loads. Ihave seen so many cs-cart shops that are very slow. I hope they read these ‘performance’ threads for their own business sake.

Does anyone know how to exclude other directories? I love smartoptimizer, but it kills the css in my other sites.

[quote name=‘moka’]Does anyone know how to exclude other directories? I love smartoptimizer, but it kills the css in my other sites.[/QUOTE]



Well I’v got same problem, i have installed /forum/ dir in my server where csc sits, and when I’m moving into www.mysite.com/forum/ i’m getting this popup message:

[QUOTE]SmartOptimizer Error: File is out of base directory.[/QUOTE]



Any one knows how can I fix this?

:confused:

I just increased memory to 128MB in config file and my site home pages are all fast loading. Even ones with a flash banner.

Ive just installed smartptimiser on two sites and Load Time decreased dramatically…

Domain name Size Load Time Average Speed per KB

1 gdscot.co.uk 21.26 KB 0.93 seconds 0.04 seconds

2 snoozers.co.uk 19.07 KB 2.9 seconds 0.15 seconds

[quote name=‘arunas@simonaitis.lt’]Well I’v got same problem, i have installed /forum/ dir in my server where csc sits, and when I’m moving into www.mysite.com/forum/ i’m getting this popup message:





Any one knows how can I fix this?

:confused:[/QUOTE]



Is this dir actual subdomain or just a dir created within cscart?

[quote name=‘Darius’]Is this dir actual subdomain or just a dir created within cscart?[/QUOTE]



Dariau,



dir is located in main public_html catalog like CSC,



example:

  • public_html

    – CSC catalog 1

    – CSC catalog 2

    – CSC catalog 3

    – Forum catalog

    – CSC catalog 4

    – CSC catalog 5



    I have tried to add SmartOptimizer .htaccess text into PHPBB3 htaccess file but it just doesn’t work…



    Somebody knows how to fix it…



    To Darius : Būčiau dėkingas už pagalbą. :wink:

I love this thread! thanks man, all logical steps to take with great effect.

[quote name=‘arunas@simonaitis.lt’]Well I’v got same problem, i have installed /forum/ dir in my server where csc sits, and when I’m moving into www.mysite.com/forum/ i’m getting this popup message:





Any one knows how can I fix this?

:confused:[/QUOTE]



Nobody can help?

[quote name=‘freebull’]…I found it was one of the CS-Cart Add-ons which calls Access restrictions causing this issue. After I disable it, my site just loads super fast without any optimization.



Here is my demo site address: [URL]http://www.cybbay.com/demo/index.php[/URL]



I’m guessing it may have some coding issue with this add-on.[/quote]



Same here. After disabling that add-on my home page now loads in 2-3 seconds without optimization. Was taking 15-18 seconds.



I see the demo does not suffer from this but since I’m not the only one experiencing this issue, I submitted a bug report.

[quote name=‘jeffshead’]Same here. After disabling that add-on my home page now loads in 2-3 seconds without optimization. Was taking 15-18 seconds.



I see the demo does not suffer from this but since I’m not the only one experiencing this issue, I submitted a bug report.[/QUOTE]



I wonder if it is a setting within the addon as we have no difference in speed with the addon active or disabled.



Our host is located in Chicago and opening our home page in Chicago takes about 2 seconds and this is with a photo heavy home page.



In Asia it can take 12 seconds to open our home page on a slower connection (but still broadband)

[quote name=‘Traveler’]I wonder if it is a setting within the addon …[/quote]



My settings are exactly the same as the setting in the demo. I did not change any of the default settings.



I don’t recall if this add-on is active by default or not.

Interesting yet if the demo works fine and other sites work OK then there must be some variable unless you have some files corrupted?



A roughly 10+ second delay is a huge problem - you should have CS cart check for you. If a bug it is free if not then it is a small charge problem solved.



Is it possible that it is a server side setting?



What type of account and with whom is your cart running on?

I host my own websites.



I guess it could be a server setting, but I can’t think of what it could be and I’m not the only one that has reported this issue, here in the forum.

[quote name=‘jeffshead’]I host my own websites.



I guess it could be a server setting, but I can’t think of what it could be and I’m not the only one that has reported this issue, here in the forum.[/QUOTE]



So as I said have CS cart fix the problem if it is a bug - free and from what you say it quite possibly is a bug.



If it is your settings the charge is typically low.



Sounds like a clear course of action. Good luck!