Print Page | Close Window

Un-used script

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Suggestions
Forum Description: ProductCart Suggestions
URL: https://forum.productcart.com/forum_posts.asp?TID=4630
Printed Date: 29-April-2024 at 5:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Un-used script
Posted By: joshs
Subject: Un-used script
Date 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




-------------
Josh Shirley
josh@windsurfutah.com



Replies:
Posted By: prillo
Date 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.  :)


Posted By: joshs
Date 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


Posted By: prillo
Date Posted: 12-November-2011 at 4:51pm
That would be fantastic Josh.  Please post here if you get a chance.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net