Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Cs-Cart Slow Speed For Google Pagespeed Insights Rate Topic   - - - - -

 

Posted 08 December 2016 - 01:19 AM #1

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.



 

Posted 08 December 2016 - 06:17 AM #2

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



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21916 posts

Posted 08 December 2016 - 07:08 AM #3

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 08 December 2016 - 07:17 AM #4

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 08 December 2016 - 07:23 AM #5

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 08 December 2016 - 03:55 PM #6

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?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 08 December 2016 - 05:14 PM #7

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 08 December 2016 - 05:24 PM #8

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

https://www.hobbies4...on-tra3340.html

Thanks.

 
  • gleb.goncharov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 04-Oct 13
  • 351 posts

Posted 08 December 2016 - 07:46 PM #9

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.



 

Posted 08 December 2016 - 07:54 PM #10

Thank you. Just sent you an email.



 

Posted 08 December 2016 - 07:56 PM #11

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



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 09 December 2016 - 12:35 AM #12

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.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 09 December 2016 - 04:52 PM #13

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.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 09 December 2016 - 06:13 PM #14

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 09 December 2016 - 10:19 PM #15

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.



 

Posted 10 December 2016 - 10:00 PM #16

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

 

Thanks.



 
  • gleb.goncharov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 04-Oct 13
  • 351 posts

Posted 11 December 2016 - 10:54 AM #17

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.g...om/&tab=desktop).

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

5) You still have RC4 enabled (https://www.ssllabs....obbies4life.com)



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 11 December 2016 - 08:50 PM #18

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 12 December 2016 - 05:32 AM #19

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.

 
  • Erics
  • Senior Member
  • Trial users
  • Join Date: 30-May 16
  • 152 posts

Posted 12 December 2016 - 04:14 PM #20

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.