Skip to content

Commit

Permalink
feat: init partytown on DOMContentLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jan 20, 2022
1 parent 47a264b commit e090556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/main/snippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export function snippet(
if (doc.readyState == 'complete') {
ready();
} else {
win.addEventListener('DOMContentLoaded', ready);
win.addEventListener('load', ready);
}
}

1 comment on commit e090556

@vercel
Copy link

@vercel vercel bot commented on e090556 Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.