Hacker News new | ask | show | jobs
by klean92 3677 days ago
I use :visible. The notes say it can increase speed 17x in certain cases.
1 comments

The 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.