Re: Silent javascript download+queue+iframe
"John M. Hann" <[email protected]> Tue, 16 May 2006 20:15:46 -0000
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
Don't forget the "defer" attribute! It doesn't improve download time, but if your scripts execute any code when they load, the browser **may** defer the execution until after the page is rendered. <script src="myScriptIMightNeedLater.js" defer></script> -- John http://e-numera.com/ http://ajax-web2.com/ --- In [email protected], "Ian Petersen" <ispeters@...> wrote: > > Hey Mandy, > > Why not just add a few "useless" <script src="foo"></script> > throughout your site? > > For example, if the login page is light, maybe source two or three > extra Javascript files just to make them fresh in the browser's cache, > same for a page the user is likely to spend a long time visiting. I > assume the page that is likely to be visited for a longer time is more > complicated than the others. If this is the case, it's easy to > explain why it takes a little longer to download. > > It's not very flashy, but low-tech might be more resilient than high-tech. > > Ian > > On 5/16/06, Maninder, Singh <mandiv@...> wrote: > > Hello Everyone, > > > > Here are my application details: > > > > 1) I have a series of pages and almost all of them have their associated javascript files. > > 2) Some pages require a number of javascript files and hence take more time to download as compared to others. > > 3) I expect the user to spend more time on one particular page and obviously he got to come on the login page (which is pretty light). > > > > > > Here is my problem: > > > > 1) The pages that have a number of javascript files take a lot of time to download and I would like to implement some solution so that I can make use of the page where I expect the user to spend some time by downloading those javascript files in the background (at least a couple of them). > > > > What's the best way to do this? > > > > Should I have a hidden iframe on that page and give a call to those 2-3 javascript files? > > Should I use xmlhttp to give a call to those files? > > Should I implement a queue mechanism? > > > > Does someone have some code on this already? > > > > Please let me know. > > > > Thank you, > > Mandy. > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > > > Unsubscribe > > [email protected] > > > > List info > > http://www.quirksmode.org/dom/list.html > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > -- > Tired of pop-ups, security holes, and spyware? > Try Firefox: http://www.getfirefox.com > ------------------------ Yahoo! Groups Sponsor --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/9rHolB/TM --------------------------------------------------------------------~-> Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/