From: Tom Gilder Date: Sun, 16 Jan 2005 13:04:11 +0000 (+0000) Subject: Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) X-Git-Tag: 1.5.0alpha1~920 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=0dca8813052872b22f0e06a0e8a5b860a452fb7a;p=lhc%2Fweb%2Fwiklou.git Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0c2f812b56..022de6263c 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -835,13 +835,16 @@ class SkinTemplate extends Skin { # If we use the site's dynamic CSS, throw that in, too if ( $wgUseSiteCss ) { - $sitecss = '@import "'.$this->makeUrl('-','action=raw&gen=css' . $siteargs).'";'."\n"; + $sitecss = ''; + if($wgContLang->isRTL()) $s .= '@import "' . $wgStylePath . '/' . $this->stylename . '/rtl.css";' . "\n"; + $sitecss .= '@import "' . $this->makeNSUrl(ucfirst($this->skinname) . '.css', 'action=raw&ctype=text/css&smaxage=' . $wgSquidMaxage, NS_MEDIAWIKI) . '";' . "\n"; + $sitecss .= '@import "' . $this->makeUrl('-','action=raw&gen=css' . $siteargs) . '";' . "\n"; } # If we use any dynamic CSS, make a little CDATA block out of it. if ( !empty($sitecss) || !empty($usercss) ) { - $this->usercss = '/**/'; + $this->usercss = "/**/'; } wfProfileOut( $fname ); } @@ -879,9 +882,7 @@ class SkinTemplate extends Skin { $action = $wgRequest->getText('action'); $maxage = $wgRequest->getText('maxage'); $s = "/* generated user stylesheet */\n"; - if($wgContLang->isRTL()) $s .= '@import "'.$wgStylePath.'/'.$this->stylename.'/rtl.css";'."\n"; - $s .= '@import "'. - $this->makeNSUrl(ucfirst($this->skinname).'.css', 'action=raw&ctype=text/css&smaxage='.$wgSquidMaxage, NS_MEDIAWIKI)."\";\n"; + if($wgUser->getID() != 0) { if ( 1 == $wgUser->getOption( "underline" ) ) { $s .= "a { text-decoration: underline; }\n";