https://bugzilla.wikimedia.org/show_bug.cgi?id=27488
--- Comment #58 from Krinkle <[email protected]> 2011-08-24 23:21:38 UTC --- (In reply to comment #57) > [add] some library [that] would enable script developers to load their > scripts either > before end of head (sequentially) or in paralel or after doc.ready. I don't think the latter is useful. The only two queues needed is 'must be ready before body starts' and 'not required right away, may be loaded any time later asap'. This currently means: * 'top': document.write in head * 'bottom': appendChild to body from bottom of body Which we could change to: * 'head': non-async loading in head * 'body': async-loading in head or top-of-body If a module needs to execute something after or at doc-ready it can simply add a callback to $(document).ready. There is no point in deliberately delaying the point when a download for a script starts to after the doc-ready, that would only slow down the page. Execution (not loading) can be desired after doc-ready however, which is what the doc-ready event is for. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
