X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Combine Javascript to improve performance (https://forum.x-cart.com/showthread.php?t=58187)

BBM_ 02-23-2011 09:39 PM

Combine Javascript to improve performance
 
Hi All,

I was just wondering if anyone has had any success with combining all of their .js files into one and how significant the performance increase was?

I'm looking at combining everything into the common.js file and would appreciate some feedback on those who have completed this.

Thanks.

BBM_ 02-25-2011 10:33 PM

Re: Combine Javascript to improve performance
 
Hmmmm,

No one has had any success in doing this?

Shamun 02-25-2011 11:03 PM

Re: Combine Javascript to improve performance
 
The effect of this would vary per site. If you have a bunch of things loading, then all the JS files will start taking up HTTP requests and slow the load time due to waiting. It would also reduce the bandwith overhead of requesting more files but that difference wouldn't be noticed by much.

If you want to combine your javascript, you will need to find out which scripts can be combined so they load in the order they're supposed to. This could become more work than worth depending on how much JS is used and how much traffic you get.

BBM_ 02-25-2011 11:13 PM

Re: Combine Javascript to improve performance
 
Thanks for the response. I currently have a load time of around 2.1 seconds according to Google, yet there are 10 JS files I would like to reduce these.

I'll have a play on a vm and see what the results are.

isaels@i-artsupplies.co.u 03-14-2011 08:02 AM

Re: Combine Javascript to improve performance
 
Im needing to have this done as well but have absolutly no idea how to do it. I think though you only really see a difference if the site gets really busy...

BBM_ 03-18-2011 08:03 PM

Re: Combine Javascript to improve performance
 
This is true, I'm just looking at reducing requests on the server

qualiteam 03-24-2011 04:10 AM

Re: Combine Javascript to improve performance
 
This feature is available in 4.4.x. So, consider upgrading X-Cart.
Alternatively you can check 4.4.x code and back-port it to 4.x


All times are GMT -8. The time now is 05:26 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.