Web Wiz - Green Windows Web Hosting

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

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: Bournemouth
Status: Offline
Points: 9844
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

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.