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
The solutions was to place the style sheets above the javscript in elements/header.php
I have the same issue with a template...but I don't understand your solution...please help!!
I have the same issue with a template...but I don't understand your solution...please help!!
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'); ?>
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'); ?>