These are just static files?
You could use Google's copy of jQuery:
http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js";>
And host the rest of your files on Amazon S3. Let them worry about the
scaling.
Combine the plugin and the other JS file into a single .JS file and minify
thats a pretty good solution... ive also been thinking about using
cachefly as a backup maybe... i'd rather use packed then minified
though :) im sure i can find one here on googlecode thogh
thanks!
On Aug 28, 9:48 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> These are just static files?
>
>
Alex Weber wrote on 8/29/2008 10:15 AM:
i'd rather use packed then minified though :)
Use minified, not packed. Although a packed file is smaller, it's overall
performance is worse when compared to minified:
-
This means, in the end, that using a minifed version of the code is much fas
Thanks Billy, I wasn't aware of that!
While we're on the subject I have another question:
Currently what I'm doing is:
1) Call function 1, checks for jQuery and if not then loads the
library and recursively checks until its available.
2) Once its available, a second function is called and does
> From: Alex Weber
>
> Currently what I'm doing is:
>
> 1) Call function 1, checks for jQuery and if not then loads
> the library and recursively checks until its available.
> 2) Once its available, a second function is called and does
> the same thing to load a plugin
> 3) Ditto for my custom
Thanks for the reply Mike, here goes: (the ==pagename.ext== denotes a
new file - sure there are better ways of doing this but i hope its
legible)
==index.html==
http://www.mydomain.com/js/
mts_loader.js">
==mts_loader.js==
var mts_finan_times, mts_finan_timeout, mts_finan_loaded,
mts_finan
Holy moly, that is complicated! No, you don't need to do any of that.
Even if it were the right approach, it's poorly coded, with the same
ten-line function duplicated three times, and a completely hard-coded,
non-generalized way of handing the load sequencing. (What do you do if you
need to add
Thanks a million Mike!
I hated that code but wasn't sure how to make it better... :)
So just to clear things up, you prefer using document.write() to
insert tags instead of appending the elements to the DOM:
var finan = document.createElement('script');
finan.type = 'text/javascrip
> From: Alex Weber
>
> So just to clear things up, you prefer using document.write()
> to insert
Thanks again Mike!
I reckon I have it down to a 'T' now! :)
Just one doubt (sorry i've taken so much of your time already!):
When you say:
"Concatenate all of your scripts into a single file."
Do you mean the entire jquery library as well?
Is this feasible? Like, copy and paste the entire jq
Sent: Tuesday, September 02, 2008 2:07 PM
> To: jQuery (English)
> Subject: [jQuery] Re: best techniques to optimize loading of
> multiple libraries?
>
>
> Thanks again Mike!
>
> I reckon I have it down to a 'T' now! :)
>
> Just one doubt (sorry i've
--
>
> Your script goes here
>
> ;//
>
> That way you get a nice visual separation between the scripts, and the extra
> semicolons won't hurt anything.
>
> -Mike
>
> > From: A
There's quite a few ways! :)
You can use this link to do it directly from your browser:
http://fmarcia.info/jsmin/test.html
Or if you're more skeptical the original implementation and ports to
every programming language you can eat with a spoon are here:
http://javascript.crockford.com/jsmin.htm
On Sep 3, 2008, at 6:44 AM, viktor wrote:
How do you minify a .js file?
http://www.crockford.com/javascript/jsmin.html
On bottom of the page is link for implementations in several languages.
--
Mika Tuupola
http://www.appelsiini.net/
How do you minify a .js file?
On Aug 29, 11:04 pm, Bil Corry <[EMAIL PROTECTED]> wrote:
> Alex Weber wrote on 8/29/2008 10:15 AM:
>
> > i'd rather use packed then minified though :)
>
> Use minified, not packed. Although a packed file is smaller, it's overall
> performance is worse when compare
15 matches
Mail list logo