Page MenuHomePhabricator

Require all gadgets to load via ResourceLoader
Closed, ResolvedPublic


Gadgets that don't load via ResourceLoader require discrete requests to the server to fetch, which is awful for performance. Non-ResourceLoader loading of Gadgets should be sunsetted. The top priority should be fixing Gadgets that are turned on by default and which do not use ResourceLoader.

Event Timeline

ori created this task.Nov 24 2014, 11:51 PM
ori raised the priority of this task from to Needs Triage.
ori updated the task description. (Show Details)
ori changed Security from none to None.
ori added a subscriber: ori.
He7d3r added subscribers: TheDJ, Edokter.
He7d3r added a subscriber: He7d3r.
TheDJ added a comment.EditedNov 25 2014, 10:06 AM

I'm in favor, but what about disallowing it first for gadgets that are enabled by default ?

A ton of gadgets stuff is only used by very few users, in those cases it probably matters significantly less. For default gadgets however, it is KEY to do this properly and it would probably achieve 80% of the same goal.

+1 for TheDJ idea

Ricordisamoa added a subscriber: Ricordisamoa.

With non-RL gadgets could be easily spotted through simple API queries.

With non-RL gadgets could be easily spotted through simple API queries.

It's working.
Just look for "legacyscripts": true in

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 15 2015, 8:34 AM
Ricordisamoa closed this task as Resolved.Aug 15 2015, 8:41 AM
Ricordisamoa assigned this task to Krinkle.

For many Gadgets, migrating to ResourceLoader will be as easy as adding [ResourceLoader]" to its definition on MediaWiki:Gadgets-definition.

What's the point of requiring an explicit [ResourceLoader] if gadgets can't work without it? Shouldn't it be implied now?

Snaevar removed a subscriber: Snaevar.Aug 24 2015, 11:52 PM