Soft jQuery Loading |
Sean B. Palmer |
04/04/10 05:42 |
The Problem: When saved locally, an HTML file has no jquery.js. The Solution: Check for local jQuery, otherwise use a web version. This code works: <script src="jquery.js"></script> But it contains a document.write, which is generally frowned upon. The <script src="jquery.js"></script> I suspect that it needs to do the $(document).ready thing that jQuery |
Re: Soft jQuery Loading |
Sean B. Palmer |
18/11/10 06:45 |
Better solution, derived from html5boilerplate.com: <script src="http://goo.gl/LISf" title="jquery.js"></script> -- |
Re: Soft jQuery Loading |
DaveP |
18/11/10 06:57 |
Rather enigmatic Sean? Better than .... ? regards DaveP > -- -- |
Re: Soft jQuery Loading |
Pererinha |
18/11/10 07:31 |
I guess it is better than use jquery.js of you own website, right? by using the jquery hosted by google the js file will be loaded faster because the google has multiple geographic servers and you (user) will be redirected to the one that is near from you |
Re: Soft jQuery Loading |
DaveP |
18/11/10 07:36 |
On 18 November 2010 15:31, Pererinha <pere...@gmail.com> wrote: Thanks Pererinha, makes sense now.
|
Re: Soft jQuery Loading |
Sean B. Palmer |
18/11/10 08:56 |
> Better than .... ? Oh, this is a reply to an old Whits thread: http://groups.google.com/group/whits/t/77cd2f9ea5f079a4 I just hit reply to the original message that I sent, and figured it
|
Re: Soft jQuery Loading |
Pererinha |
18/11/10 08:58 |
oh, now I read the old thread, and it makes sense =) thanks for the explantion
|
Re: Soft jQuery Loading |
DaveP |
18/11/10 08:58 |
On 18 November 2010 16:56, Sean B. Palmer <s...@miscoranda.com> wrote: I'm getting these as gmail emails, i.e. no threading? [Actually my first reaction was 'sbp has finally cracked' :-)]
|