Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

  New Posts New Posts RSS Feed - Including Functions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

Including Functions

 Post Reply Post Reply
Author
luwandui View Drop Down
Groupie
Groupie


Joined: 10 August 2011
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote luwandui Quote  Post ReplyReply Direct Link To This Post Topic: Including Functions
    Posted: 07 September 2011 at 7:43am
My question has to do with including .asp pages inside of .asp pages. More specifically, today I create one file called aspfunctions.asp that I include on all my pages. I build all of my functions in that one page.

For ease of use, I want to take a different approach and make a new file for each function. I would then only include the function on a page if I needed to use it.

Instead of aspfunctions.asp, I would have function1.asp, function2.asp, etc.

So my question is - does the volume of .asp includes on a page affect the time it takes for pages to load? By going from a single .asp include on each page to multiple .asp includes, is my page load speed likely to be affected?

Another form of the question: Do .asp includes cause the same additional http calls as images, .js, .css, and the like?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 8028
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2011 at 9:23am
If you are including an ASP file in another ASP file then this is done server side so although the browser does not need to make extra calls to the server the server would have addition work to do loading in the include files from disk.

If the functions you are using are going to be used on allot of pages then I would just use a single include file as this would reduce disk IO of loading in the additional files.

If you have functions that are not going to be used often but are large then to reduce the size of your functions include file you may want to place these functions in a separate functions include file. 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved