Un-used script |
Post Reply |
Author | |
joshs
Newbie Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 20-July-2011 at 7:37pm |
It would be nice to not load unused scripts on every page.
for example tooltip loads a whole lotta javascript and html even if it is turned off, it still loads. I ran a comparison with and without necessary code, with very basic home page, and the size of the html file was half, more like 7-8 kb. That isn't much but when our site gets loaded a million times a month it adds up. On that same note - css files that aren't needed on every page, like ei-tooltip.css & subscription.css, onepagecheckout.css, etc. could definitely go. Simple as: <% if pcPageName="onepagecheckout.asp" then %> <link type="text/css" rel="stylesheet" href="onepagecheckout.css" /> <% end if %> Maybe it is just me but it peeves me every time I see our site serving up un-needed files. don't get me wrong, I really really like the Product Cart software, I just hope for a little less inefficiencies. just trim the fat some, that is all. Josh Edited by joshs - 20-July-2011 at 7:38pm |
|
Josh Shirley
josh@windsurfutah.com |
|
prillo
Newbie Joined: 30-June-2011 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hi Josh,
Did you find any solution to this? I am looking to trim the fat as well. :)
|
|
joshs
Newbie Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I made a number of changes to our code, mostly rearranging things, and have seen much improvement in load speed. Cut load speed in half.
I wanted to wait a couple months and then look at the results - reveal errors and such. Hopefully this weekend I will have some time to put together a list of basic changes that can be made to speed up "out of the box" product cart. Josh
|
|
Josh Shirley
josh@windsurfutah.com |
|
prillo
Newbie Joined: 30-June-2011 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
That would be fantastic Josh. Please post here if you get a chance.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |