https://bugzilla.wikimedia.org/show_bug.cgi?id=65147

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Introduce global js and css |Implement a way for wikis
                   |                            |to provide js and css that
                   |                            |is loaded in all skins
                   |                            |(including mobile)

--- Comment #8 from Krinkle <[email protected]> ---
The bug as filed is a case of "works for me".

We have a global js/css, it's MediaWiki:Common.js and MediaWiki:Common.css.

The MobileFrontend extension is violating documentation and expectation by not
loading it, that's a bug on their end.

Their decision to not load it is understandable however. Due to how these are
used on specific wikis (e.g. Wikimedia's).

It's not entirely the fault of these scripts though. Mobile browsers weren't
always officially supported by MediaWiki. Reaching out to the community and
requesting they migrate things accordingly should be a reasonable path from
here on out. If any exceptional problems or struggles come up, they should be
able to get help from Wikimedia's mobile team to find a solution.

As for introducing a Desktop.css/js, I don't think that makes sense. We already
have skin-specific site modules (Vector.js/css, Monobook.js/css,
Mobile.js/css).

If code is common between both vector and monobook, it should probably be
either duplicated in both, or improved to be generic enough and work on mobile
as well. Mobile doesn't deserve that kind of special treatment imho, that
encourages bad practices.

A good example is the accessibility and mobile compatibility of the Vector
dropdown. It used to only work on hover. For many reasons (including mobile,
but that doesn't even matter to me in this context), it was improved to also
work on focus and click. This made it much more accessible and usable, and also
made it work on mobile.

It is imho not worth it to duplicate that logic so that the 2 lines of code
binding the "hover" handler aren't loaded on mobile. The module binds on all
three (hover, click, focus) and that seems like a good pattern to follow. Being
purist about every line of code in bandwidth isn't useful imho as there's much
bigger fish to catch (both in that area and others).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to