3 ms·
The reason people say “the DOM is slow” is because it’s slower than anything else in JavaScript, not because of an absolute measurement. If you’re calling Java
by mathias 14y ago
The reason people say “the DOM is slow” is because it’s slower than anything else in JavaScript, not because of an absolute measurement.
If you’re calling JavaScript features slow or fast based on absolute measurements, you’re doing it wrong. Read up on JavaScript benchmarking. Create and run some jsPerf tests on various devices and browsers, and compare the results. You’ll quickly find that absolute numbers are meaningless in this case.