I would say that the opposite is true. Using setTimeout and setInterval correctly can dramatically reduce browser usage by browsers. For example, using setTimeout instead of using a for or while will not only reduce CPU usage, but also ensure that the browser is able to update the UI queue more often. Long processes do not freeze or block the user's work.
But overall, using setInterval really very similar to your site, it can slow down. 20 simultaneous work intervals with more or less hard work will affect the show. And again ... you can really mess up any part, I think this is not a setInterval problem.
.. and by the way, you do not need to check the hash. There are events for this:
onhashchange
will work when the hash changes.
window.addEventListener('hashchange', function(e) { console.log('hash changed, yay!'); }, false);
jAndy Jul 11 2018-11-11T00: 00Z
source share