Print Page | Close Window

External JavaScripts

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14812
Printed Date: 01 April 2026 at 4:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: External JavaScripts
Posted By: Gullanian
Subject: External JavaScripts
Date Posted: 24 April 2005 at 5:58am
If you have large chunks of HTML on every page (like a menu), isn't it better on bandwidth if you store them in external JavaScripts using document.write to print it all out so that the browser can cache it and you save on some bandwidth?

Apart from ease of development what are the disadvantages?  I don't think a JavaScript disabled browser really is that much of an issue any more.



Replies:
Posted By: zMaestro
Date Posted: 25 April 2005 at 11:09am
will it be updated easily?
 
I've a site with a flash banner, and a flash file is never updated (as i face), and always read from the cache. when i change the flash, i must change the file name, i don't know if it is the same or not for js.


Posted By: Gullanian
Date Posted: 25 April 2005 at 12:53pm
Good point but changing the name isn't a big issue, I would of thought it would of been a good technique for big site like Google to use where every bit is viewed billions of times and adds to the bandwidth total... 


Posted By: WebWiz-Bruce
Date Posted: 25 April 2005 at 1:18pm
It's not that peoples browsers are not javascript compatible, what I find is a problem is there seem to be an incredible amount of paranoid people who disable javascript in their browsers.

-------------
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


Posted By: Gullanian
Date Posted: 25 April 2005 at 1:49pm
Ok, so apart from dipsticks is there no reason not to do this?


Posted By: dpyers
Date Posted: 25 April 2005 at 3:52pm
Last figure I heard was about 10% have JS disabled. I think that number is high as many people had it disabled to block pop-ups but there are a lot of tools available for that now.
 
How big of a menu do you have that it would use excessive bandwidth? Wink


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Gullanian
Date Posted: 25 April 2005 at 5:34pm
Hah I don't have any big menus!  Just curious as to why they don't do it.  Wouldn't it be a good thing to have in HTML, a sort of client side include file for caching chunks of data?  Pages would load a lot quicker.  The developer would also have full control over what is cached and what isnt. 



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