Flash of unstyled content in Firefox 3 - Fixed

Permalink
FYI. I was having a problem with Firefox 3 showing unstyled content until the page completed loading.

The solutions was to place the style sheets above the javscript in elements/header.php

motox
 
dennis007 replied on at Permalink Reply
dennis007
I have the same issue with a template...but I don't understand your solution...please help!!
dennis007 replied on at Permalink Reply
dennis007
I have the same issue with a template...but I don't understand your solution...please help!!
jordanlev replied on at Permalink Reply
jordanlev
It depends on how exactly the theme was written, but for most themes this should work:
Open the "/packages/theme_THEMENAME/themes/THEMENAME/elements/header.php" file, and if you see something like this:

<?php Loader::element('header_required'); ?>
<link rel="stylesheet" type="text/css" href="<?php print $this->getStyleSheet('main.css'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php print $this->getStyleSheet('typography.css'); ?>" />

Move the "Loader::element" line to below the stylesheet lines, so it would be this:

<link rel="stylesheet" type="text/css" href="<?php print $this->getStyleSheet('main.css'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php print $this->getStyleSheet('typography.css'); ?>" />
<?php Loader::element('header_required'); ?>