The webpage has some images. After loading the document the images are fully loaded. Some seconds later they disappear and then they come back. I've tracked down the problem to this line.
document.body.innerHTML = '<div name="abc">some blah</div>'
+ document.body.innerHTML;
, changed it into:
document.body.innerHTML += '<div name="abc">some blah</div>';
Hasn't helped, changed it into:
$("body").append('<div name="abc">some blah</div>');
No success at all.
It seems to me that the complete html code of the body is replaced by a new on. That's why it is empty for a short time. The browser removes all elements and repaints them.
Any solutions?
Thank you.