Page MenuHomePhabricator

Parsoid doesn't add JS modules to <head> in its output
Closed, ResolvedPublic

Description

Parsoid output doesn't include JS modules / resources in its output. This task has been split from T139852#2807689

Related Objects

Event Timeline

ssastry triaged this task as Medium priority.Apr 9 2017, 9:58 PM

We also don't expose the CSS modules in a very friendly manner. They get appended to a list of common style modules, then serialized into a ResourceLoader URL.

Perhaps we could have some sort of meta tag which lists the RL modules (CSS & JS) required to render the page?

See T147702 where our hack solution involved extracting the module names from the ResourceLoader query string.

ssastry subscribed.

Change 675180 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):
[mediawiki/services/parsoid@master] Export ResourceLoader Modules & JS Config vars in meta tags in <head>

https://gerrit.wikimedia.org/r/675180

Change 675180 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Export ResourceLoader modules & JS config vars in meta tags in <head>

https://gerrit.wikimedia.org/r/675180

Change 709062 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.14.0-a12

https://gerrit.wikimedia.org/r/709062

Change 709062 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.14.0-a12

https://gerrit.wikimedia.org/r/709062