(bug 34669) Disable CSS concatenation, breaks @import
authorCatrope <roan.kattouw@gmail.com>
Mon, 16 Apr 2012 17:32:05 +0000 (10:32 -0700)
committerCatrope <roan.kattouw@gmail.com>
Mon, 16 Apr 2012 17:34:41 +0000 (10:34 -0700)
Disabled with if(false) so we can deploy this code safely without
breaking @import , should be reenabled or cleaned up once we've figured
out how to handle this properly.

Change-Id: I067108755915e2a0d342738b9f617b3f11a52705

resources/mediawiki/mediawiki.js

index eebbab2..e477705 100644 (file)
@@ -431,7 +431,8 @@ var mw = ( function ( $, undefined ) {
                        function addInlineCSS( css ) {
                                var $style, style, $newStyle;
                                $style = getMarker().prev();
-                               if ( $style.is( 'style' ) && $style.data( 'ResourceLoaderDynamicStyleTag' ) === true ) {
+                               // Disable <style> tag recycling/concatenation because of bug 34669
+                               if ( false && $style.is( 'style' ) && $style.data( 'ResourceLoaderDynamicStyleTag' ) === true ) {
                                        // There's already a dynamic <style> tag present, append to it. This recycling of
                                        // <style> tags is for bug 31676 (can't have more than 32 <style> tags in IE)
                                        style = $style.get( 0 );