How can I check if a URL has changed in JavaScript? For example, websites like GitHub, which use AJAX, will append page information after a # symbol to create a unique URL w
You are starting a new setInterval at each call, without cancelling the previous one - probably you only meant to have a setTimeout
setInterval
setTimeout