Reputation: 25372
I have an inconsistent problem with my website. Between page loads, sometimes there is a white flash before the page completely loads. It is only for an instant, and it happens about 85% of the time. Furthermore, it only happens in Chrome.
I have tried putting script before the ending body tag and it has helped the other browsers, but not Chrome.
Can someone please show me what is wrong?
Could it have anything to do with conflicting CSS? Is there any way to pre-load the page before displaying it without doing an onload
event that sets the visibility of the html to visible, as that does not solve the problem; the page is still white.
EDIT 1:
You may notice sometimes that the background image loads slow, so the background is a dark blue for a split second. That is not what I am referring to. It appears to be a special case situation. Sometimes it does that for me, sometimes it is completely white for just a brief moment before the page appears.
Upvotes: 0
Views: 843
Reputation: 4708
My guess is that the browser is simply parsing the CSS of the body background (white) before your bg images have time to load. Unfortunately, I don't have any quick fixes for this. You could get rid of the background image gradient and use CSS, this might stop the flashing.
Upvotes: 1