8 ms·
I use :visible. The notes say it can increase speed 17x in certain cases.
by klean92 10y ago
I use :visible. The notes say it can increase speed 17x in certain cases.
- vonklaus 10y agoThe notes say it is computationally expensive and bad for performance. Using this selector heavily can have performance implications, as it may force the browser to re-render the page before it can determine visibility. Tracking the visibility of elements via other methods, using a class for example, can provide better performance. To be clear, it is 17x faster than it was.