Suppose I have an element that, depending on the state of my app, will either be display: none or display: block. Is it preferable to group all the other styles for the element with one of these rules, or does it make no difference because the browser needs to rerender anyway?
Philosophically it seems like the styles would be grouped with the display value that makes them have an effect, but is there any extra work the browser has to do when more rules are applied when the visible class is added?
Viewing 1 post (of 1 total)
The forum ‘Other’ is closed to new topics and replies.