mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-04-05 17:33:31 -04:00
delayed loading of umami tracker script until page is already
interactive
This commit is contained in:
@@ -1,17 +1,31 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
import { browser } from '$app/environment';
|
||||||
|
|
||||||
import "./layout.css";
|
import "./layout.css";
|
||||||
import favicon from "$lib/assets/favicon.ico";
|
import favicon from "$lib/assets/favicon.ico";
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
if (browser) {
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.defer = true;
|
||||||
|
script.src = 'https://umami.snail.city/script.js';
|
||||||
|
script.setAttribute('data-website-id', '5b8c31ad-71cd-4317-940b-6bccea732acc');
|
||||||
|
script.setAttribute('data-domains', 'bibdle.com,www.bibdle.com');
|
||||||
|
document.body.appendChild(script);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<link rel="icon" href={favicon} />
|
<link rel="icon" href={favicon} />
|
||||||
<script
|
<!-- <script
|
||||||
defer
|
defer
|
||||||
src="https://umami.snail.city/script.js"
|
src="https://umami.snail.city/script.js"
|
||||||
data-website-id="5b8c31ad-71cd-4317-940b-6bccea732acc"
|
data-website-id="5b8c31ad-71cd-4317-940b-6bccea732acc"
|
||||||
data-domains="bibdle.com,www.bibdle.com"
|
data-domains="bibdle.com,www.bibdle.com"
|
||||||
></script>
|
></script> -->
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
|
|||||||
8
todo.md
8
todo.md
@@ -59,12 +59,20 @@ I created Bibdle from a combination of two things. The first is my lifelong desi
|
|||||||
|
|
||||||
# done
|
# done
|
||||||
|
|
||||||
|
## february 2nd
|
||||||
|
|
||||||
|
- created rss feed
|
||||||
|
- fixed "first letter" clue edge cases
|
||||||
|
- updated ranking formula
|
||||||
|
|
||||||
## january 28th
|
## january 28th
|
||||||
|
|
||||||
|
- add percentile stats, update chapter guess UI
|
||||||
- fixed middle statline (removed meaningless %)
|
- fixed middle statline (removed meaningless %)
|
||||||
- added instructions
|
- added instructions
|
||||||
- added email button
|
- added email button
|
||||||
- added test buttons for 3.0 UI/UX
|
- added test buttons for 3.0 UI/UX
|
||||||
|
- package upgrades
|
||||||
|
|
||||||
## january 26th
|
## january 26th
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user