[jQuery] Re: jQuery plug-in to preload javascript?

2008-12-02 Thread c.barr
If all these scripts are on every single page, you should look into combining them all into a single file as well, this way there's only 1 HTTP request instead of 12. Do this first, then compress with JSMin or YUI compressor to reduce file size. On Dec 1, 6:22 pm, Mark Livingstone [EMAIL

[jQuery] Re: jQuery plug-in to preload javascript?

2008-12-02 Thread ricardobeat
One way to reduce loading time is to use $.getScript to only load a plug-in when you're actually using it. If you keep you're scripts on the head you won't be able to display any loading status, cause the document body isn't there yet. - ricardo On Dec 1, 10:22 pm, Mark Livingstone [EMAIL