Skip to content

Commit

Permalink
Call init outside DOMContentLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Jul 29, 2024
1 parent e1694a6 commit ebbe873
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/interactivity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,5 @@ export const privateApis = ( lock ): any => {
throw new Error( 'Forbidden access.' );
};

document.addEventListener( 'DOMContentLoaded', async () => {
registerDirectives();
await init();
} );
registerDirectives();
init();

0 comments on commit ebbe873

Please sign in to comment.