"Nikerabbit" posted a comment on MediaWiki.r108184.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/108184#c29479

Commit summary for MediaWiki.r108184:

ResourceLoader: Add an experimental option to move the main module loading 
queue (the bottom queue) from the bottom of the <body> up into the <head> , 
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 <body> or the <head> if blocking is false. If the 
document is ready, the loader will always append to the <body>
* 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 <body> as before
* scripts-only and messages-only requests need special treatment:
** in the top queue, they can continue to use <script src="..."> tags because 
they are blocking
** if the bottom queue is at the bottom of the <body> (experimental async 
loading disabled), they can continue to use <script src="..."> tags as before
** if the bottom queue is in the <head> (experimental async loading enabled), 
they cannot use <script src="..."> tags, because those would block. Instead, 
call mw.loader.load() on the load.php URL

Nikerabbit's comment:

There are some JS errors in twn log:

 2012-01-11T03:17:22UTC  mw.loader.setBlocking is not a function 
http://translatewiki.net/wiki/Translating:Kiwix:31
 >X.Y.Z.K  Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
 >URL: http://translatewiki.net/wiki/Translating:Kiwix
 >STACK: ("mw.loader.setBlocking is not a 
 >function","http://translatewiki.net/wiki/Translating:Kiwix",31)@http://translatewiki.net/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%7Ctwn.jserrorlog&only=scripts&skin=vector&version=20111230T233043Z:156


_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to