Topic on Extension talk:MobileFrontend

Jump to navigation Jump to search (talkcontribs)

Hi, I'm using the Widgets extension to embed disqus comments in articles. However in mobile view the comments disappear. I've checked the page source and in the nomal version there is some JS: pastebin. In the mobile version it is removed: pastebin

Jdlrobson (talkcontribs)

By design the mobile site doesn't allow any javascript from the desktop site..

This is because most javascript for mediawiki is not written with the mobile in mind. In mobile it is essential to keep page load as low as possible.

Currently extensions have to register themselves for mobile, which is a relatively easy code change, but also will require some extensive testing. It might be worth raising a bug in the widgets extension so we can explore the best way of doing this for mobile.


קיפודנחש (talkcontribs)

so the it's my understanding that mobilefrontend does not include common.js and common.css.

this is probably the right thing to do, as most of the stuff in those two pages is desktop specific.

however, i did not find a way to add site-specific CSS and JS on the mobile view, which does cause issues. is there an alternative for common.js and common.css for mobile? something like "Mediawiki:Mobileview.css" and "Mediawiki:Mobileview.js" which will be loaded?

leaving no per-cite customization options for the mobilefrontend is problematic, IMO.


Jdlrobson (talkcontribs) (talkcontribs) (talkcontribs)


I have a similar problem with the ConfirmEdit extension together with Recaptcha mode.

Is there any documentation available how the extension can be registered for mobile?

Thank you, Christoph

Reply to "Is JavaScript filtered?"