const delay = Math.max(500 - (Date.now() - this.timeStart), 0);
setTimeout(() => {
if (this.currentUrl != document.location.href) return; //page change
const delay = Math.max(500 - (Date.now() - this.timeStart), 0);
setTimeout(() => {
if (this.currentUrl != document.location.href) return; //page change