chuvak
07-03-2003, 04:57 PM
Hi,
when I change something in the page what is the exact mechanism of redrawing?
For example I have a function that makes B to appear instead of A , D instead of C etc.
function zzz {
A.style.display="none";
B.style.display="block";
C.style.display="none";
D.style.display="block";
....
}
Suppose I have several changes in the DOM tree like that.
Can a page start redrawing while not all changes have yet been made? Is it possible to make the browser wait till I am done with modifying DOM tree? I have the impression that the browser rerenders the page 2 or more times while my function is executing, because I see little fickers, not all changes seem to occur at once.
thanks in advance
when I change something in the page what is the exact mechanism of redrawing?
For example I have a function that makes B to appear instead of A , D instead of C etc.
function zzz {
A.style.display="none";
B.style.display="block";
C.style.display="none";
D.style.display="block";
....
}
Suppose I have several changes in the DOM tree like that.
Can a page start redrawing while not all changes have yet been made? Is it possible to make the browser wait till I am done with modifying DOM tree? I have the impression that the browser rerenders the page 2 or more times while my function is executing, because I see little fickers, not all changes seem to occur at once.
thanks in advance