We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbad39 commit 83864ccCopy full SHA for 83864cc
src/layouts/BaseLayout.astro
@@ -84,3 +84,10 @@ const { pageTitle } = Astro.props;
84
<Footer />
85
</body>
86
</html>
87
+
88
+<script>
89
+ // Prevent any unwanted unload handlers for improved Lighthouse scores
90
+ window.addEventListener("load", () => {
91
+ window.removeEventListener("unload", () => {});
92
+ });
93
+</script>
0 commit comments