Question

I'm getting flicker on page load or postback of a coloured page body in IE11, on externally hosted site (ie. not from local disk).

The odd thing is it goes away if I either:

  1. Open F12 developer tools
  2. Add the site to trusted sites
  3. Add the site to restricted sites

I've got a VM with IE9 which works fine. Works fine on Chrome.

I obviously cannot use any of the above as a solution!!!

This sample code has one link that switches between two pages. I've removed everything else, javascript, css files etc.

--- page1.html ---

<html>

<body style="background-color:#000000">
    <a href="page2.html">Page 2</a>
</body>

</html>

And then an identical page2.html that refs back to page 1.

Clicking on the link flickers the background from white to black each time, unless using any of the "fixes" above!

Was it helpful?

Solution

I have found another way to temporary fix this bug by adding an empty event handler through JS.

link such .js file to you html

fix_ie.js:

if(window.addEventListener){
    window.addEventListener('beforeunload', function(){});
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top