Skip to content

Commit

Permalink
doc: idle- > onNuxtReady
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 25, 2024
1 parent 035fc6a commit 0c184bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If you want to get a feel for how the module works, you can load the `js-confett
```ts
interface JSConfettiApi { addConfetti: (options?: { emojis: string[] }) => void }
const { addConfetti } = useScript<JSConfettiApi>('https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js', {
trigger: 'idle', // load on onNuxtReady
trigger: 'onNuxtReady', // load on onNuxtReady
assetStrategy: 'bundle', // script will be served from your server instead of cdn.jsdelivr.net
use() {
return new window.JSConfetti()
Expand Down

0 comments on commit 0c184bc

Please sign in to comment.