Have a question for you server-savvy types out there:

I'm working on an intranet project which uses large amounts of 
Javascript. At present I have things structured such that each 
of the several hundred pages on the site has an identical head 
section, which loads seven different external scripts.  These 
control drop-down menus, user-customization options and so on.

This is all working fine, but my client is of the opinion that 
it would be preferable to generate each page on-the-fly using 
SSI; i.e., the head would be a separate file that would be 
called with an !--#include.  His main objective is to make the 
body of each page easier to maintain, which I suppose it 
would.  But it's my (quite possibly faulty) belief that 
overall this would slow down the site's operation, what with 
the constant requests to the server engendered by the SSIs.

My contention is that Netscape 4.x (the browser used by the 
department in question) by default caches JC scripts called 
externally, meaning that they will only have to be requested 
once from the server, and then each page of the site will be 
loaded as needed. Whereas with SSI there would be at least two 
requests for every page, one for the body and the other for 
the included header.  Or am I off-base here?

As it is the head on each page only runs to about 25 lines of 
code, since the various scripts are separate entities called 
externally... it's my view that it's better to leave each page 
a self-contained entity, and dispense with the SSI stuff.

Opinions?

-----------
Brent Eades, Almonte, Ontario
   E-mail: [EMAIL PROTECTED]
           [EMAIL PROTECTED]
   Town of Almonte site: http://www.almonte.com/
   Business site: http://www.federalweb.com

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to