| Author |
Topic Search Topic Options
|
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
Topic: External JavaScripts 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.
|
 |
zMaestro
Senior Member
Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
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...
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 April 2005 at 1:49pm |
|
Ok, so apart from dipsticks is there no reason not to do this?
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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? 
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
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.
Edited by Gullanian - 25 April 2005 at 5:35pm
|
 |