News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by esperent on Wednesday August 05, 2020 @03:04AM (#24058036)
> 500k ops is ridiculously slow for accessing the DOM on any modern hardware. It sounds fast when aren’t comparing it to anything.

I didn't say it was fast OR slow. I just said it's not slow enough to be the problem that you're claiming it is.

If you disagree with this, could you provide evidence of a situation where accessing elements with strings is a bottleneck? As I said, I've never seen this in practice and if it can be the case I would like to know more.

> Compare that to a similar approach that makes use of the standard DOM methods

querySelector is a standard DOM method.

> and no selectors

I don't know what you're referring to here. Could you provide an example?

Re:In spite of an increase in Internet speed, webpage speeds... by austincheney on Wednesday August 05, 2020 @06:36AM (#24059194)
Re:In spite of an increase in Internet speed, webpage speeds... by esperent on Wednesday August 05, 2020 @11:39PM (#24067931)
I've seen so many benchmarks for these selectors I basically know them by heart. I'm asking for a real world example where selectors cause slowdown.