Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script-intensive file has increased my page's size!!!

Status
Not open for further replies.

superman74

Technical User
Mar 13, 2002
6
US
I have a budget calculator that I've created for a local credit counseling place. I have this set up for a LOT of categories and sub categories. The user can remove the category if it doesn't apply to them, enter their actual budget for each category to compare it to the total budget and the category budget, etc.

It works great. Problem is, there's so much script on this simple page, its 191 kb in files size just for the ASP file. I've made a couple of includes for when the person makes changes to the page (if then statements) to try and remove some of the script to save download time at least for the user the first time they go to the page, but its still 180 kb.

Any suggestions?
 
it sounds as tho you've done it all on one page if so, try to cut it down in several small pages, for example when the user removes a catagory send them to another asp page that runs the script to remove the category then return them back to the main page

also use as many subs and functions as possible to ensure that any code is only written once but can be run several times

if possible use framse/inline-frames and call several pages from one - although this doesnt cut down on total size and download times, it doesnt feel aslong to the user

without actually seeing the code or knowing more about how you've written it its hard to give any definate answers

I can't be bothered to have a sig!
 
what size is the page the user gets served? (just the html code, no ASP)

if its all server side script, where's the slow down?

-perhaps i'm confused here :)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top