Using the CSS contain: paint
which improves performance by limiting the layout and painting of child elements to the container's dimensions, restricting unnecessary rendering outside its boundaries.
Front-Tips/css-property-contain-paint
Using the CSS property `contain: paint` which improves performance by limiting the layout and painting of child elements to the container's dimensions, restricting unnecessary rendering outside its boundaries.
CSS