|
|
|
|
|
by filleduchaos
2141 days ago
|
|
You're quite frankly leaping to conclusions quite a bit, as well as starting from the (rather flawed) premise that parsing a, what, ten-character string is so slow that it can slow an operation down by three orders of magnitude. There are any number of reasons why the querySelector API would be computationally different from the getElementX ones, especially considering that they don't even return the same thing. |
|
Any number of reasons like what? Could you provide an example of what would make those methods that much slower?