Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

ResourceLoader and IE's stylesheet limits

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


danb at VistaPrint

Oct 13, 2011, 12:38 PM

Post #1 of 6 (149 views)
Permalink
ResourceLoader and IE's stylesheet limits

This is a question about an infrastructural detail of ResourceLoader and how it interacts with Internet Explorer. (It's my first post to wikitech-l, so apologies if it's the wrong forum.)

Our MediaWiki 1.17.0 site recently installed a bunch of extensions that use ResourceLoader, such as Extension:WikiEditor. To our surprise, some of our site's unrelated CSS styles stopped working. This was happening only in Internet Explorer. After some detective work, we discovered the problem is Internet Explorer's limit of 31 stylesheets:

http://support.microsoft.com/kb/262161

With so many extensions calling $wgOut->addModule [PHP} and mw.loader.load [JavaScript], the limit of 31 stylesheets is exceeded quickly. I removed a few mw.loader.load calls - it didn't matter which ones - and the problem went away.

Obviously this is an IE problem, not MediaWiki's, but it's going to cause issues on MediaWiki sites. WikiEditor itself loads about 10 stylesheets, for example, taking the site ~30% of the way toward a CSS failure.

So my questions are:

1. Is there a workaround for sites like mine, with many stylesheets from separate extensions loaded by ResourceLoader?

2. Should ResourceLoader address this IE problem? Maybe start combining stylesheets (with @import) automatically?

Thanks,
DanB


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


roan.kattouw at gmail

Oct 13, 2011, 12:55 PM

Post #2 of 6 (147 views)
Permalink
Re: ResourceLoader and IE's stylesheet limits [In reply to]

On Thu, Oct 13, 2011 at 9:38 PM, Daniel Barrett <danb [at] vistaprint> wrote:
> This is a question about an infrastructural detail of ResourceLoader and how it interacts with Internet Explorer. (It's my first post to wikitech-l, so apologies if it's the wrong forum.)
>
You're in the right place, don't worry :)

> Our MediaWiki 1.17.0 site recently installed a bunch of extensions that use ResourceLoader, such as Extension:WikiEditor. To our surprise, some of our site's unrelated CSS styles stopped working. This was happening only in Internet Explorer. After some detective work, we discovered the problem is Internet Explorer's limit of 31 stylesheets:
>
>        http://support.microsoft.com/kb/262161
>
ZOMG. I had no idea MSIE had that limit. And I thought I'd pretty much
discovered the extent of IE's retardation. This makes me sad.

> 1. Is there a workaround for sites like mine, with many stylesheets from separate extensions loaded by ResourceLoader?
>
> 2. Should ResourceLoader address this IE problem?  Maybe start combining stylesheets (with @import) automatically?
>
RL should address this problem, yes, but it currently doesn't because
its authors (of which I am one) were not aware of this issue. I've
filed this as https://bugzilla.wikimedia.org/show_bug.cgi?id=31676 ,
thanks for the report.

Roan

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


Platonides at gmail

Oct 13, 2011, 1:14 PM

Post #3 of 6 (146 views)
Permalink
Re: ResourceLoader and IE's stylesheet limits [In reply to]

Applies to:
Windows Internet Explorer 9
Microsoft Internet Explorer 4.01 Service Pack 1
Microsoft Internet Explorer 6.0
Microsoft Internet Explorer 6.0 Service Pack 1
Windows Internet Explorer 7
Windows Internet Explorer 8

How's that it isn't fixed in newer versions?
I expected that even if something like that failed in old versions, it
would have already been fixed. :(


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


happy.melon.wiki at gmail

Oct 13, 2011, 4:18 PM

Post #4 of 6 (143 views)
Permalink
Re: ResourceLoader and IE's stylesheet limits [In reply to]

"Internet Explorer then generates another POST request if the original
request was a POST request. Or, Internet Explorer may send a GET request
instead."

Lolfacepalm.

--HM


On 13 October 2011 21:14, Platonides <Platonides [at] gmail> wrote:

> Applies to:
> Windows Internet Explorer 9
> Microsoft Internet Explorer 4.01 Service Pack 1
> Microsoft Internet Explorer 6.0
> Microsoft Internet Explorer 6.0 Service Pack 1
> Windows Internet Explorer 7
> Windows Internet Explorer 8
>
> How's that it isn't fixed in newer versions?
> I expected that even if something like that failed in old versions, it
> would have already been fixed. :(
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at gmail

Feb 8, 2012, 4:22 PM

Post #5 of 6 (61 views)
Permalink
Re: ResourceLoader and IE's stylesheet limits [In reply to]

On Thu, Oct 13, 2011 at 9:55 PM, Roan Kattouw <roan.kattouw [at] gmail> wrote:
>> Our MediaWiki 1.17.0 site recently installed a bunch of extensions that use ResourceLoader, such as Extension:WikiEditor. To our surprise, some of our site's unrelated CSS styles stopped working. This was happening only in Internet Explorer. After some detective work, we discovered the problem is Internet Explorer's limit of 31 stylesheets:
>>
>>        http://support.microsoft.com/kb/262161
>>
> ZOMG. I had no idea MSIE had that limit. And I thought I'd pretty much
> discovered the extent of IE's retardation. This makes me sad.
>
>> 1. Is there a workaround for sites like mine, with many stylesheets from separate extensions loaded by ResourceLoader?
>>
>> 2. Should ResourceLoader address this IE problem?  Maybe start combining stylesheets (with @import) automatically?
>>
> RL should address this problem, yes, but it currently doesn't because
> its authors (of which I am one) were not aware of this issue. I've
> filed this as https://bugzilla.wikimedia.org/show_bug.cgi?id=31676 ,
> thanks for the report.
>
Many months later, I've finally fixed this, see
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110988 . The fix
will be in the 1.19 release.

Roan

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


danb at VistaPrint

Feb 9, 2012, 6:35 AM

Post #6 of 6 (58 views)
Permalink
Re: ResourceLoader and IE's stylesheet limits [In reply to]

>I've finally fixed this, see https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110988 .
>The fix will be in the 1.19 release.

You rock, Roan!!!
DanB


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

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.