Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - External JavaScripts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

External JavaScripts

 Post Reply Post Reply
Author
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post 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... 
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: 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.
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2005 at 1:49pm
Ok, so apart from dipsticks is there no reason not to do this?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post 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
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.