News for hackers. Stuff that matters.
Re:JavaScript Is Enough by yeargun on Sunday March 22, 2026 @07:34PM (#47483516)
GJ one your library

One random recommendation I could give based on my experimentations on both firefox and chromium

you can attach symbol based custom properties to each such dom node 'class'

and apart from using .matches(), symbol attribute check. this outperforms class based equality checks by a small margin.

very marginal but hey, you are clearly tryharding.

Re:JavaScript Is Enough by dashersw on Sunday March 22, 2026 @07:42PM (#47483574)
Thank you! Very interesting insight—I'll have a look.