Print Page | Close Window

Including Functions

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=29742
Printed Date: 28 March 2026 at 7:40am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Including Functions
Posted By: luwandui
Subject: Including Functions
Date 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?



-------------
http://www.rsdisnow.com/rosetta-stone-spanish-c-5.html" rel="nofollow - Rosetta Stone Spanish



Replies:
Posted By: WebWiz-Bruce
Date 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. 

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

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