Topic on Extension talk:MobileFrontend

Amire80 (talkcontribs)

Hi,

The page ResourceLoader/Writing a MobileFrontend friendly ResourceLoader module says: "We don't load common scripts".

It appears, however, that the user's own common.js is loaded. I'm not sure why is it loaded if the site-wide common.js is not.

I'd also expect there to be an easy way to detect in JavaScript's runtime that we are on a mobile site, and there probably is such a way, but I couldn't easily find it. One way I found is if ( mw.config.get( 'skin' ) !== 'minerva' ), but surely there is something more robust.

Jdlrobson (talkcontribs)

Can you raise a bug? There's been some changes to resourceloader which may have broken this. Thanks!

Amire80 (talkcontribs)