Page MenuHomePhabricator

Port MobileFrontend to use ResourceLoader for JS and CSS
Closed, ResolvedPublic

Description

This is especially useful for mobile devices, but CSS and JS files should be retrieved by using the ResourceLoader, so it gets minimised among other things


Version: unspecified
Severity: enhancement

Details

Reference
bz31675

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:56 PM
bzimport set Reference to bz31675.
bzimport added a subscriber: Unknown Object (MLST).

Wed love to use it as it has the cache expiry features that we need. But unfortunately RL requires jQuery which weve removed from our mobile site since its too big to send over slow networks. If we could make RS not depend on jQuery then wed happily try it.

I wonder if there is way to maybe write some RL sub modules to cater for the way that Mobile works, removing the jQuery dependencies. Then it can either go into core, or into MF

I can't see this being much work. I've CC'd Roan, but he gets all bugspam anyway. I'll speak to him in NOLA and see what he thinks.

I spoke with Tomasz the other day and from that I gathered the current plan is to do port MobileFrontend to ResourceLoader, but still keep an alternate mode where no JavaScript is loaded at all (which would be used by devices that either don't support JavaScript or don't support it enough to properly run jQuery and MediaWiki libraries).

This is partially done now; in beta mode we enable ResourceLoader with the 'mobile' target but not all of MF's items are loaded this way yet.

Moving discussion to bug 41340

  • This bug has been marked as a duplicate of bug 41340 ***