I found that setting the background color in the CSS file does not remove the white flash.
What worked for me was embedding the style in the header just before loading the CSS files. In my case, the color I wanted was #D0D0D0 , so this is what I did.
<!doctype html> <html lang="en"> <head> <title>Page Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style>html, body { background-color: #D0D0D0; } </style> <link rel="stylesheet" type="text/css" href="/css/style.css" /> </head>
The white flash in IE9 is resolved for me. I assume IE will draw the page white if there is Javascript in <head> , but IE will not parse the CSS file until it reaches <body> .
cgTag
source share