IE Flash Effect

I have a problem: when I switch to other pages on the site, my background turns white and loads again. I know this has something to do with the IE cache and some research on this. I have already tried the most common fixes, both css and javascript, for example, those on this site: http://ieflicker.com/ , but none of them work.

UPDATE (code)

The site uses BODY with background-image: url('background1.jpg') as part of its CSS. It seems to one day download an image and cache it in all browsers, but IE10. IE10 seems to restart it every time.

+2
javascript html css internet-explorer internet-explorer-10
source share
1 answer

Obviously, IE10 does not cache the image loaded via CSS, despite all the hacks. You need to explicitly download it. For example. if your body style mentions:

 background-image: url('background1.jpg') 

add this to your HTML page:

 <img src='background1.jpg' style='display:none' /> 

Now it will load and cache the image, and flicker will be prevented.

+6
source share

All Articles