mw.loader.store: temporarily allow users to opt-in via cookie
authorOri Livneh <ori@wikimedia.org>
Wed, 30 Oct 2013 22:23:48 +0000 (15:23 -0700)
committerOri.livneh <ori@wikimedia.org>
Wed, 30 Oct 2013 22:53:34 +0000 (22:53 +0000)
commit8e2b5b37cb025c66be96088bf6a668730cdc6677
treec761dbffa489b60ccaa0322960ef1858863f6269
parent47f46381e34544e47fb46bd7bb3e203bf85479c6
mw.loader.store: temporarily allow users to opt-in via cookie

To facilitate mw.loader.store testing on production wikis, it would be good to
allow developers and JavaScript-savvy users to opt-in for mw.loader.store
testing by manually setting a cookie in their browser. With this patch in
place, this would be possible to do by executing the following statement in a
debug console:

    $.cookie( 'ResourceLoaderStorageEnabled', 1, { expires: 7, path: '/' } );

This will be removed from mediawiki.js (long) before the 1.23 release.

Bug: 56397
Change-Id: I51cfd563734a3aeed3667fbb19bf3be40fabbb6b
resources/mediawiki/mediawiki.js