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
On Thu, Oct 13, 2011 at 9:38 PM, Daniel Barrett danb@vistaprint.com 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:
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.
Is there a workaround for sites like mine, with many stylesheets from separate extensions loaded by ResourceLoader?
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
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. :(
"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@gmail.com 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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Thu, Oct 13, 2011 at 9:55 PM, Roan Kattouw roan.kattouw@gmail.com 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:
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.
Is there a workaround for sites like mine, with many stylesheets from separate extensions loaded by ResourceLoader?
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
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@lists.wikimedia.org