2 ms·
There's big performance downside replacing classes with attributes at least when using javascript query selectors. Browsers have special data structures for id
by lrtz 2y ago
There's big performance downside replacing classes with attributes at least when using javascript query selectors.
Browsers have special data structures for id and class search optimizations.
Matching attributes scans through the dom top down.