Skip to content

Commit 73cefe9

Browse files
committed
Use script defer instead for CDN usage
1 parent c1a5bdb commit 73cefe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ import { SvelteToast, toast } from `@zerodevx/svelte-toast'
6060
const app = new SvelteToast({
6161
// Set where the toast container should be appended into
6262
target: document.body,
63-
// Optionally set default options here
6463
props: {
6564
options: {
65+
// Optionally set default options here
6666
...
6767
}
6868
}
@@ -89,7 +89,7 @@ Or if you prefer to go old-school javascript and a CDN:
8989
toast.push('Hello world!');
9090
}
9191
</script>
92-
<script async src="https://cdn.jsdelivr.net/npm/@zerodevx/svelte-toast@0" onload="registerToast()"></script>
92+
<script defer src="https://cdn.jsdelivr.net/npm/@zerodevx/svelte-toast@0" onload="registerToast()"></script>
9393
</head>
9494
```
9595

0 commit comments

Comments
 (0)