Since ResourceLoader only supports desktop-specific modules, it's only possible to have desktop-specific gadgets (by not specifying targets=mobile). Since targets is planned for removal (T127268), it's not worthwhile changing ResouceLoader to allow mobile-specific modules, instead (per the recommendation on T127147#2073423) the mobile-specific skin (minerva) should be used to limit gadgets to mobile. Unfortunately, gadgets' skins option looks for the user's skin preference, rather than what skin is actually displayed, and so it doesn't work.
Description
Description
Related Objects
Related Objects
- Mentioned In
- T171180: Gadget with target=mobile should not be enqueued on desktop (Warning from mw.loader.load)
T127147: Gadget definition "targets=mobile" seem to target mobile and desktop users on ur.wp - Mentioned Here
- rEGADb340532c526a: Fix skins option to use currently displayed skin, rather than user preference
T127147: Gadget definition "targets=mobile" seem to target mobile and desktop users on ur.wp
T127268: Dismantle ResourceLoader's "targets" system
Event Timeline
Comment Actions
Change 299950 had a related patch set uploaded (by Majr):
Fix skins option to use currently displayed skin, rather than user preference