This link has been bookmarked by 159 people . It was first bookmarked on 25 Jul 2006, by someone privately.
-
31 Dec 17
-
08 Aug 14
-
29 May 13
-
22 Feb 13
-
06 Jul 12
-
30 Jun 12
-
29 Mar 12
-
13 Mar 12
-
12 Dec 11
-
28 Sep 11
-
27 Sep 11
-
09 Jun 11
-
13 May 11
-
18 Mar 11
-
06 Mar 11
-
09 Feb 11
-
31 Jan 11
-
11 Jan 11
-
14 Nov 10
-
Download Javascript as and when required, instead of downloading it all on page load
-
-
25 Aug 10
-
16 Aug 10
-
30 Jun 10
-
04 Jun 10
-
- Initial page load is faster.
- Overall bandwidth usage is less, since only Javascript that's required is used.
- Deployment is easier as the code takes care of pulling in Javascript, with the coder only ensuring enough is there to kick the process off.
- You can produce snippets of Javascript on the fly - effectively sending back a kind of "behaviour message" advising the browser on its next action. This is a variant of the core pattern described at the end of this section.
- You can bypass the standard "same-domain" policy that normally necessitates a Cross-Domain Proxy. Provided a server exposes a segment of valid Javascript, it can be extracted by the browser.
Conventionally, best practice has been to include Javascript unobtrusively - by including it in one or more script tags.
-
-
01 Jun 10
-
27 Mar 10
-
22 Mar 10
-
17 Mar 10
-
20 Jan 10
-
20 Nov 09
-
08 Nov 09
-
18 Oct 09
-
21 Sep 09
-
28 May 09
-
25 May 09
-
20 May 09
-
24 Apr 09
-
06 Apr 09
-
27 Feb 09
-
03 Feb 09
-
14 Jan 09
-
17 Nov 08
-
01 Nov 08
-
30 Oct 08
-
24 Oct 08
-
01 Oct 08
-
28 Aug 08
-
02 Jun 08
-
01 Jun 08
-
27 May 08
-
14 Apr 08
-
02 Apr 08
Mike KossQuoted: Devi's concerned about initial user experience, because her new website requires lots of Javascript. She refactors the application, extracting out a few Javascript modules. The initial page load is now much faster, because only a bare-bones initia
-
21 Mar 08
-
05 Mar 08
-
23 Feb 08
-
14 Feb 08
-
08 Feb 08
-
30 Jan 08
-
13 Jan 08
-
08 Jan 08
-
the script will be added to the DOM, whereas it would disappear after an XMLHttpRequest callback eval'd it.
-
-
07 Dec 07
-
02 Nov 07
-
26 Oct 07
-
25 Oct 07
-
16 Oct 07
-
05 Sep 07
-
16 Aug 07
lgsiigo"Script tag monkeying" "on demand JavaScript" "Cross Domain Ajax"
-
24 Jul 07
-
15 Mar 07
-
28 Feb 07
Don Youngdownload javascript only when its needed
-
31 Jan 07
-
25 Jan 07
-
17 Jan 07
-
13 Jan 07
-
08 Jan 07
-
04 Jan 07
-
22 Oct 06
-
14 Oct 06
-
09 Oct 06
-
05 Sep 06
-
23 Aug 06
-
20 Jul 06
-
23 Jun 06
-
12 May 06
-
09 May 06
-
20 Apr 06
-
22 Feb 06
-
13 Feb 06
-
18 Jan 06
-
23 Dec 05
-
16 Dec 05
-
13 Dec 05
-
08 Dec 05
-
13 Nov 05
hustwjDownload Javascript as and when required, instead of downloading it all on page load
-
12 Nov 05
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.