Skip to content

Commit ebbe873

Browse files
committed
Call init outside DOMContentLoaded
1 parent e1694a6 commit ebbe873

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/interactivity/src/index.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,5 @@ export const privateApis = ( lock ): any => {
5656
throw new Error( 'Forbidden access.' );
5757
};
5858

59-
document.addEventListener( 'DOMContentLoaded', async () => {
60-
registerDirectives();
61-
await init();
62-
} );
59+
registerDirectives();
60+
init();

0 commit comments

Comments
 (0)