Skip to content

Commit

Permalink
fix: remove mouseover iteraction to load trd3 to not fire pagespeed
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Dec 7, 2024
1 parent 1080878 commit b6a4cfc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
7 changes: 0 additions & 7 deletions src/components/trd3/clarity/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
loadScript();
loaded = true;
});

window.addEventListener("mouseover", () => {
if (loaded) return;

loadScript();
loaded = true;
});
});
})();
</script>
7 changes: 0 additions & 7 deletions src/components/trd3/google/tagmanager.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
loadScript();
loaded = true;
});

window.addEventListener("mouseover", () => {
if (loaded) return;

loadScript();
loaded = true;
});
});
})();
</script>
7 changes: 0 additions & 7 deletions src/components/trd3/hubspot/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@
loadScript();
loaded = true;
});

window.addEventListener("mouseover", () => {
if (loaded) return;

loadScript();
loaded = true;
});
});
})();
</script>

0 comments on commit b6a4cfc

Please sign in to comment.