Apart from allowing you insert js variables into a script tag when written like document.write('<scr' + 'ipt src= what are the pros/cons of this vs a normal <script src=> tag?
I’m mainly asking with regard to speed but interested in the whole story.
Thanks
Denis
I assume this is to gain non blocking javascript loading.
For this i suggest looking at Steve Souders posts about the subject.
http://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-blocking/
The LABjs library solves this in a pretty nifty way.
http://labjs.com/
Also it seems newer browsers are beginning to load things parallel by default
http://www.stevesouders.com/blog/2010/02/07/browser-script-loading-roundup/