Repaint – also known as redraw – is what happens whenever something is made visible when it was not previously visible, or vice versa, without altering the layout of the document. An example would be when adding an outline to an element, changing the background color, or changing the visibility style. Repaint is expensive in terms of performance, as it requires the engine to search through all elements to determine what is visible, and what should be displayed.
OpenEdition vous propose de citer ce billet de la manière suivante :
cléoradar (12 avril 2009). Efficient JavaScript – Opera Developer Community. Cléo Radar. Consulté le 28 avril 2025 à l’adresse https://doi.org/10.58079/mw6d