Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which forum?
#9
(10-30-2009, 03:27 AM)Timelord Wrote: And makes no difference, Tim. While it's loading I can't touch the page until it finishes. It slows editing.

You won't get the full page until everything has finished but you can at least start viewing the page while it is loading before the script has executed.

Quote:Put Scripts at the Bottom
tag: javascript
The problem caused by scripts is that they block parallel downloads. The HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel. While a script is downloading, however, the browser won't start any other downloads, even on different hostnames.
In some situations it's not easy to move scripts to the bottom. If, for example, the script uses document.write to insert part of the page's content, it can't be moved lower in the page. There might also be scoping issues. In many cases, there are ways to workaround these situations.
An alternative suggestion that often comes up is to use deferred scripts. The DEFER attribute indicates that the script does not contain document.write, and is a clue to browsers that they can continue rendering. Unfortunately, Firefox doesn't support the DEFER attribute. In Internet Explorer, the script may be deferred, but not as much as desired. If a script can be deferred, it can also be moved to the bottom of the page. That will make your web pages load faster.

Source: http://developer.yahoo.com/performance/rules.html
MyBB Support team member.
[Image: smallsig.png]
Reply


Messages In This Thread
Which forum? - by Timelord - 10-28-2009, 10:43 PM
RE: Which forum? - by Extasey - 10-28-2009, 11:41 PM
RE: Which forum? - by Timelord - 10-29-2009, 02:38 PM
RE: Which forum? - by Tim - 10-30-2009, 12:31 AM
RE: Which forum? - by Omniscient - 10-29-2009, 08:33 AM
RE: Which forum? - by Idiot #1 - 10-29-2009, 11:14 AM
RE: Which forum? - by Omniscient - 10-29-2009, 11:39 AM
RE: Which forum? - by Timelord - 10-30-2009, 03:27 AM
RE: Which forum? - by Tim - 10-30-2009, 04:21 PM
RE: Which forum? - by Timelord - 10-31-2009, 02:28 AM
RE: Which forum? - by Extasey - 10-30-2009, 05:28 PM
RE: Which forum? - by WirelessWave - 10-30-2009, 05:31 PM
RE: Which forum? - by Extasey - 10-30-2009, 05:33 PM
RE: Which forum? - by Extasey - 10-31-2009, 02:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  myBB Forum Permission Cache Error - Crippling My Forum CruciasNZ 1 1,084 04-24-2013, 12:11 AM
Last Post: Kevin Cheri

Forum Jump:


Users browsing this thread: 7 Guest(s)