Skip to content

Commit 32c4c12

Browse files
committed
massively cut loading times hopefully
1 parent f6ef4fd commit 32c4c12

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/routes/+layout.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100

101101
{#if (!isAHost && !adblockEnabled)}
102102
<script
103+
async
104+
defer
103105
type="text/javascript"
104106
src="//pl27945770.effectivegatecpm.com/b0/88/ed/b088ed7c9240db179822a126a078b258.js"
105107
></script>

src/routes/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
function injectBadAds() {
2929
const script = document.createElement("script");
3030
script.type = "text/javascript";
31+
script.async = true; // Dont wait up on script loading
32+
script.defer = true; // Ensure the script is executed after the document has been parsed
3133
script.src =
3234
"//pl27945791.effectivegatecpm.com/f9/0f/48/f90f487cd8f3cdf83690f6955c1b5655.js";
3335
document.body.appendChild(script);

static/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-29T02:43:01.851Z
1+
2025-10-29T02:57:28.276Z

0 commit comments

Comments
 (0)