1 minute read

This tech tip is useful enough to warrant its own post.

If you are updating a DOM element via javascript, for example replacing the content or changing the style, you may notice screen flicker during the update.  Screen flicker on any div update is usually the result of a collision of heights of the elements that are changing.

Be sure that there’s adequate space (or at least no overlap) between the div you are updating and any adjacent divs. The flicker is caused when the DOM renders the new placement & has to ‘adjust’ the overlap.