From 0dca8813052872b22f0e06a0e8a5b860a452fb7a Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Sun, 16 Jan 2005 13:04:11 +0000 Subject: [PATCH] Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) --- includes/SkinTemplate.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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"; -- 2.20.1