Cs-Cart Slow Speed For Google Pagespeed Insights

Hi,

Not sure but looks like CS-Cart is very slow in loading pages even with a fast server it takes over 12 seconds. The server responds time is 2.7 seconds and rest of the time it's CS-Cart. Could someone help in getting my speed faster for CS-Cart? I currently have the latest CS-Cart and update constantly whenever a new update is available.

thanks.

Hi,

Not sure but looks like CS-Cart is very slow in loading pages even with a fast server it takes over 12 seconds. The server responds time is 2.7 seconds and rest of the time it's CS-Cart. Could someone help in getting my speed faster for CS-Cart? I currently have the latest CS-Cart and update constantly whenever a new update is available.

thanks.

Hi,

Actually cs-cart use Smarty template engine for all templates and smarty has one of the biggest disadvantage is speed. It is very Time-consuming when templates get compiled and converted into actual execution of code . But hopefully In future cs-cart will migrate from smarty to another template engine like Twig or something else.

Thanks

Are you sure that the server is configured correctly? For example, response time on their demo is 0.48 sec

Hi,

Actually cs-cart use Smarty template engine for all templates and smarty has one of the biggest disadvantage is speed. It is very Time-consuming when templates get compiled and converted into actual execution of code . But hopefully In future cs-cart will migrate from smarty to another template engine like Twig or something else.

Thanks

Actually, this whole statement is incorrect. Smarty templates are compiled and the compiled versions (php files) are stored in the system cache and pages are loaded from the cache. The templates only get compiled when first added to the system or the cache is cleared.

When you say

The server responds time is 2.7 seconds

are you referring to time to first byte (TTFB) or the time it takes to establish the connection?

If it's the connection time, then that is WAY too long and you should work with your hosting to see why network performance is so poor.

If you are getting TTFB in 2.7 seconds, then you have something else (perhaps some javascript or other blocking remote requests) that are preventing the HTML from loading completely and then rendering in your browser. I'd suggest you backout any block customizations you've made and disable any 3rd party addons you've installed and see if your performance improves.

If you are familiar, you could use the network tab in your browser inspector to identify where the browser is spending its time.

tbirnseth,

Would you be able to look at my code and make the adjustments to improve it as we tried everything but nothing is helping. The server is currently hosted by LiquidWeb and we have a dedicated server that should definitely handle any requests and the configuration is setup by there specialist to insure fastest speeds possible. Currently it's something to do with the CS-Cart installation, especially when loading the Product pages it takes a lot longer than to load the home page, not sure if there is something in the Product templates that is causing a slow load speed, let me know if you can take a look at our website?

If you want to provide the URL I'll be happy to take a quick look with Chrome Inspector to see if it reveals anything. However, if it is something server side then the inspector isn't going to show much other than how long it takes to load the main page GET request.

Yes, that would be excellent. Here is the URL.


https://www.hobbies4life.com/traxxas-cooling-fan-velineon-tra3340.html


Thanks.

Hi,

Not sure but looks like CS-Cart is very slow in loading pages even with a fast server it takes over 12 seconds. The server responds time is 2.7 seconds and rest of the time it's CS-Cart. Could someone help in getting my speed faster for CS-Cart? I currently have the latest CS-Cart and update constantly whenever a new update is available.

thanks.

Hello. Your server might be configured badly.

Top-5 disadvantages of your server:

NGINX isn't used

NGINX is designed around an event driven model. It doesn’t spawn nearly as many processes like Apache2, allowing it to quickly serve many thousands of requests without putting a strain on server resources. Set up NGINX as a frontend server for handling HTTP/HTTPS connection and delivering static contents such as images, styles, scripts and so forth faster and more efficient.

Obsolete PHP version

Upgrade PHP 5.6.x to 7.0.x/7.1.x to make your website twice faster. CS-Cart 4.4.2 works on PHP 7.0.x perfectly.

Heavy pages

For example, lossless compression of your images will save you 500 kb of traffic.

HTTP/2 isn't used

Enabling HTTP/2 protocol will improve website performance.

Insecure SSL/TLS settings

Activating Perfect Forward Secrecy (PFS) will improve the security. Also you should stop use weak ciphers (RC4) for security reasons.

I am pretty sure we could find more problems if we'll take a closer look at the server with SSH access. We would be glad to help you to set up your server and improve the speed of page loading. Please send us email to sales@simtechdev.com to get a free quote for analyzing bottlenecks.

Thank you. Just sent you an email.

If the problem gets resolved I will let everyone know and how it was resolved.

You have a ton of callback activity for livechat. It also has failures when doing their "tunnel_callback" whatever that is.

You are loading something called siteSealImage.do that takes over 1.5 seconds. This repeats a several times.

Looks like you're also loading images remotely from pintrest.

In summary, you are doing way too much remotely and will be subject to network latency issues and performance of your requested sites.

You also seem to have mixed content. I.e. you're loading images via http but your site is running https. I.e.

Mixed Content: The page at 'https://www.hobbies4life.com/align-150m-main-motor-set-hml15m01.html' was loaded over HTTPS, but requested an insecure image 'http://www.hobbies4life.com/design/themes/business_12/media/images/Free_Shipping_Mini.png'. This content should also be served over HTTPS.

Do you know how I could fix all those issues?

Also, the SiteSeal isn't that the SSL Certificate that gets loaded for security purposes, how would i remove that option if it's needed?

We don't load images from pinterest.

The site seal is some kind of emblem you are using on your site like a "This site is safe" type of thing. It has nothing to do with SSL. That is at a much lower level than the application.

You are loading images from pintrest and your connectivity with livechat is not the best.

You would have to analayze what you're doing and from what pages and then go in and modify the customizations you have done. Most likely these are javascript snippets you've added to interact with some outside service.

Sorry but that's where the free diagnosis ends.

Per your recommendations for the server, i changed everything as you recommend and web pages are loading longer.

Top-5 disadvantages of your server:

NGINX isn't used

NGINX is designed around an event driven model. It doesn’t spawn nearly as many processes like Apache2, allowing it to quickly serve many thousands of requests without putting a strain on server resources. Set up NGINX as a frontend server for handling HTTP/HTTPS connection and delivering static contents such as images, styles, scripts and so forth faster and more efficient.

Obsolete PHP version

Upgrade PHP 5.6.x to 7.0.x/7.1.x to make your website twice faster. CS-Cart 4.4.2 works on PHP 7.0.x perfectly.

Heavy pages

For example, lossless compression of your images will save you 500 kb of traffic.

HTTP/2 isn't used

Enabling HTTP/2 protocol will improve website performance.

Insecure SSL/TLS settings

Activating Perfect Forward Secrecy (PFS) will improve the security. Also you should stop use weak ciphers (RC4) for security reasons.

Does not work, CS-Cart will need to fix there messy coding as it's causing bad indexing with Google.

Pages are loading way to long. Please help. I have already installed all the options you referred to you above and still slow.

Thanks.

hobbiesdeveloper, it looks like you didn't solved issues. So, what have you actually done?

1) You still use Apache2 (cPanel) instead of Nginx.

$ curl -sI https://www.hobbies4life.com/traxxas-cooling-fan-velineon-tra3340.html | grep ServerServer: Apache/2.4.23 (cPanel) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

2) Perhaps you've already switched PHP to 7.0.x, but you hid the header and I couldn't check it.

3) Images still aren't compressed (https://developers.google.com/speed/pagespeed/insights/?hl=ru&url=https%3A%2F%2Fwww.hobbies4life.com%2F&tab=desktop).

4) Your website doesn't support HTTP/2 and ALPN.

5) You still have RC4 enabled (https://www.ssllabs.com/ssltest/analyze.html?d=www.hobbies4life.com)

Did you find where you're loading images from pintrest? Did you turn off livehelp? Did you do the things I recommended?

You have a TTFB of about 300ms which is very good. The time is being spent resolving the html in your browser (IMHO). Some of these (like image optimization) would definitely help, but the number of "remote references" leaves you subject to the response times of those references.

Hi Gleb,


I’m checking with our server technician in regards to the items you listed to get fixed. I will let you know if that fixed the issue.


Thanks.

Good evening, guys. So, rumor has it that Google changed the algorithm for estimating the size of the images. Radically revised it, better to say. First "the results" look something like this. Written in Russian, but the meaning is clear on pictures.