Flicker in IE11 on page load but not in developer mode

I get flickering when the page loads or the back of the colored body of the page in IE11, on an external hosted site (i.e. not from a local drive).

It is strange that this goes away if I, too:

  • Open the F12 Developer Tools
  • Add site to trusted sites
  • Add site to restricted sites

I have a VM with IE9 that works fine. Works great on Chrome.

Obviously, I can not use any of the above solutions as a solution !!!

In this code example, there is one link that switches between two pages. I deleted 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 identical to page2.html, which links to page 1.

, - "" !

+4
1

, JS.

.js html

fix_ie.js:

if(window.addEventListener){
    window.addEventListener('beforeunload', function(){});
}
+5

Source: https://habr.com/ru/post/1543031/


All Articles