I don't really understand how this solves anything, though - the stylesheets need to be conditional because IE8 needs a different value for the @media than everything else (and thus can't use the same module). Other than that, it's still the same stylesheet as is being served to everything else.

But the conditional stylesheet method employed by vector won't work if it's LESS because this method is not for RL modules, and yet it is looking like this will be our only option now? If we're using LESS on a responsive skin, we simply have to maintain two (probably pretty identical) desktop stylesheets if we want to support IE8 at all?

On 13/11/15 10:02, Florian Schmidt wrote:
I'm not totally sure, but if you put your styles into a top queue module, the 
module would be delivered through RL (with all it's features, including LESS 
compilation) and the browser requests it without JavaScript (it should be added 
into one of the RL link tags in head). The change to disable JS on IE8 should 
affect bottom queued modules, only (the requests for these modules are 
initialized by JS).

Another solution could (probably) be conditional style sheets, like Vector uses 
for IE7:
https://github.com/wikimedia/mediawiki-skins-Vector/blob/3f1515a7b223793818c6ac82805ee3b6c462fe50/SkinVector.php#L58-L62

Best,
Florian

-----Original-Nachricht-----
Betreff: Re: [Wikitech-l] [BREAKING CHANGE] IE 8 will go JavaScript-less 
starting January 2016
Datum: 2015-11-12T18:20:39+0100
Von: "Isarra Yos" <[email protected]>
An: "Wikimedia developers" <[email protected]>

Perhaps I should clarify why this is a problem. In fully responsive
skins, you generally have separate stylesheets for desktop, mobile,
really big desktop, whatever in order to keep the CSS rules simple and
not redundant (to avoid having mobile overriding desktop rules or visa
versa, you just only send the mobile styles to mobile, the desktop to
desktop). You do this by setting maximum and minimum screen sizes in the
@media queries, but the problem is, IE8 does not support this, and will
not load a stylesheet at all if these sizes are set. So you need to give
it the desktop styles some other way, without the @media size rules present.

While it is possible to simply add CSS to the page header using
outputPage, probably bypassing RL and all that entirely, this only works
with CSS, not LESS, because all the LESS magic is happening within RL.
So without RL, that means you need to render your desktop stylesheet
into CSS for this, which means you now need to maintain it in two
different places even though it's the same rules in both.

Using js got around this whole problem as with that you can simply check
the browser there and then conditionally mw.loader.load a size-free
module for IE8.

Is there any other way around this?

On 12/11/15 02:56, Isarra Yos wrote:> Is there a way to conditionally load RL modules for folks using IE8?> Because I couldn't figure out any proper way to do that in my skins> and I've just been using js to do it instead as a result.>> But that's not going to work anymore. But it's also stupid regardless.>> On 12/11/15 02:11, Krinkle 
wrote:>> Hey all,>>>> Starting in January 2016, MediaWiki will end JavaScript support for>> Microsoft Internet Explorer 8. This raises the cut-off up from MSIE 7.>> Users with this browser will still be able to browse, edit, and>> otherwise>> contribute to the site. However, some features will not be available 
to>> them. For example, the enhanced edit toolbar will not appear, and the>> notification buttons will take you to a page rather than a pop-out.>>>> This change will affect roughly 0.89% of all traffic to Wikimedia>> wikis (as>> of October 2015). For comparison, 0.33% of traffic comes from Internet>> Explorer 6, and 
1.46% from Internet Explorer 7. Support for these was>> dropped in August and September 2014 respectively.>>>> Providing JavaScript for IE 8 adds a significant maintenance burden. It>> also bloats the software we ship to all users, without proportionate>> benefit. This enables us to simplify and streamline the JavaScript>> 
codebase>> for all other users. Users unable to upgrade from Internet Explorer 8>> will>> have a faster experience going forward, based on well-tested and more>> stable code.>>>> This change will land in the development branch in January, and so>> will be>> part of MediaWiki 1.27 (to be released around May 
2016).>>>> Tech News will announce this change as well, but please help carry this>> message into your communities. In January, we will send a reminder>> before>> the change happens.>>>> Yours,>> -- Krinkle>>>> For details about the JavaScript-less experience, see>> 
https://www.mediawiki.org/wiki/Compatibility>> _______________________________________________>> Wikitech-l mailing list>> [email protected]>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l>


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to