ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Suggestions
  New Posts New Posts RSS Feed - Un-used script
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Un-used script

 Post Reply Post Reply
Author
Message
joshs View Drop Down
Newbie
Newbie


Joined: 07-April-2009
Location: Utah
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote joshs Quote  Post ReplyReply Direct Link To This Post Topic: Un-used script
    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
Back to Top
prillo View Drop Down
Newbie
Newbie


Joined: 30-June-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote prillo Quote  Post ReplyReply Direct Link To This Post Posted: 11-November-2011 at 6:16am
Hi Josh,
 
Did you find any solution to this?  I am looking to trim the fat as well.  :)
Back to Top
joshs View Drop Down
Newbie
Newbie


Joined: 07-April-2009
Location: Utah
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote joshs Quote  Post ReplyReply Direct Link To This Post Posted: 11-November-2011 at 12:02pm
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
Back to Top
prillo View Drop Down
Newbie
Newbie


Joined: 30-June-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote prillo Quote  Post ReplyReply Direct Link To This Post Posted: 12-November-2011 at 4:51pm
That would be fantastic Josh.  Please post here if you get a chance.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.