From: Roan Kattouw Date: Thu, 5 Jan 2012 23:32:41 +0000 (+0000) Subject: ResourceLoader: Add an experimental option to move the main module loading queue... X-Git-Tag: 1.31.0-rc.0~25496 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=7d5e3c070384c1d25a7de97e05b6829e127bbd85;p=lhc%2Fweb%2Fwiklou.git ResourceLoader: Add an experimental option to move the main module loading queue (the bottom queue) from the bottom of the up into the , while still being loaded asynchronously. This makes them load earlier, which should make the page load faster. This is the product of a long discussion on bug 27488 * Added a "blocking" state to mw.loader . When loading scripts while the document is not ready, the loader will use document.write() if blocking is true, and append to the or the if blocking is false. If the document is ready, the loader will always append to the * Enable blocking mode while loading the top queue, and disable it after. This ensures that modules in the top queue are still loaded in a blocking way as they were before * If $wgResourceLoaderExperimentalAsyncLoading is true, the bottom queue is also loaded in the head, but with blocking mode disabled. Otherwise, it's loaded at the bottom of the as before * scripts-only and messages-only requests need special treatment: ** in the top queue, they can continue to use