resourceloader: Add forward-compat to startup.js for I1c995a9572d
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 8 May 2019 17:21:40 +0000 (18:21 +0100)
committerCatrope <roan@wikimedia.org>
Wed, 8 May 2019 21:18:31 +0000 (21:18 +0000)
commit2c23c564e37320f99a4be0f77c954e910b38eaa6
tree574ae953658af86d52cbecc8f260df467b384af8
parent9fad11b018bd00fc4d1a8ff3c599acb85d634330
resourceloader: Add forward-compat to startup.js for I1c995a9572d

This prepares startup.js to support the declarative format
for transporting values for mw.config, mw.loader.state, and
mw.loader.load.

These are currently applied as executable code in <head>, but after
I1c995a9572d these will instead be declarative allowing them
to be set without a closure and consolidating control over the
startup flow to startup.js.

We'll still have RLQ for two reasons: 1) compat with cached HTML,
and 2) for the use case of streaming load.php-like responses
as part of the HTML payload (e.g private modules, previews,
inline snippets).

Change-Id: I76a2c8d52fa782cd09d48d99b5fbb7be35e2b9a8
resources/src/startup/startup.js