CSS contains
Adding 'contain: content' in CSS reduces the time to recalculate my stylesheet by a quarter.
Using 'contain: strict' makes the content disappear as I have not specified a height.
Adding 'contains' tries to stop CSS changes within that branch of the DOM tree affecting other parts of the tree, and vice-versa.
I am changing the color of the text in the header of my 'tips' page, with a transition. This takes a long time. Maybe the browser is looking through the large body.
There are more tips at: bbingo.xyz/t
Comments
Post a Comment