• Hi Guys,
    It looks like they have found an answer over on the Artisteer forum to the page load flash that some websites are getting.

    This is the fix from their topic for the twenty ten or twenty eleven based themes.

    Steps:
    Create an empty file in the themes folder, print.css, this is an epmty file to stop log errors.

    Then in header.php find the line:

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    Add a new line after to load the empty stylesheet.

    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_stylesheet_directory_uri() .'/print.css'; ?>" />

    So you should now have these lines and no flashing on page load, why it works no one knows, but it does!

    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_stylesheet_directory_uri() .'/print.css'; ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    If you are using a page cache, you might need to clear this for the change to work.

    Thanks and respect to the guys on the Artisteer forum!

    David

Viewing 8 replies - 31 through 38 (of 38 total)
  • i cannot login to my admin page (dashboard) now without this appearing:

    Parse error: syntax error, unexpected ‘}’ in /home/slradmin/public_html/wp-content/themes/newbusiness/functions.php on line 12Parse error: syntax error, unexpected ‘}’ in /home/slradmin/public_html/wp-content/themes/newbusiness/functions.php on line 12

    what do i do??????

    [Please do not post in uppercase. It’s the electronic equivalent of shouting and is considered quite rude. Post de-capped.]

    You deleted/added something in the functions.php file that broke the code. That’s what is causing your problems. Can you restore the functions.php from a backup via FTP? That would solve the problem.

    Thank you for your reply. Can you tell me please how and where i can do this?

    i have site5 for hosting and wordpress for the blog.

    Contact site5 and ask them if *they* have a backup of that file and if they can do the restore for you. Might be the best solution.

    The only thing that fixed the FOUC for me was downgrading to jQuery 1.4.4. Has anyone heard if there’s a fix for this in the works? I’d like to be using a more recent version of jQuery if possible, but I don’t want the FOUC…

    @dwzemens
    I can’t believe that worked!

    That issue’s been killing me, and the best result I got before now was making sure all the scripts were in the footer, but that function inexplicably made the flash go away completely. Thanks a billion!

    I have Atahualpa them 3.7.7 and WP 3.3.1.
    The code for downgrading jQueary from 1.6 to 1.4 worked for me.

    This white flash problem has been killing me too – however I installed the Disable Admin Bar plugin as the admin bar was annoying me and it seems to have fixed the white flash. I don’t know if it works for anyone else but I’ve tried it on two sites and works a treat!

Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘How-to: Fix the flash on page load 3.2.x (FOUC)’ is closed to new replies.