On 05/24/2013 06:25 PM, Mark Prins wrote:
What are the reasons for inserting script elements at the end? I generally just rely on the standard DW script minifying/combining process, and the only bits that get inserted in the page head are variable definitions (for passing values to the script, as is done with e.g. the JSINFO array... hmm, actually, come to think if it: is there some way to add to that; I've never looked).
What I mean is, nothing I've had to insert into head has relied on the prior inclusion of anything (jQuery or other scripts), so the main script inclusion could easily be moved to the bottom without worry. I think.
:-)Oh, the other thing that occured to me is that the delay in rendering might be good, because it stops people interacting with the page before all the JS behaviour is added.
—Sam. -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist