-
I want to run a bunch of preparatory code before Alpine does it's thing. The preparation involves async stuff. So how can/should I delay Alpine init until everything is ready? I know there is UPDATE: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
the npm version doesn't autostart so you would manually call |
Beta Was this translation helpful? Give feedback.
the npm version doesn't autostart so you would manually call
Alpine.start()
whenever you are ready. (https://alpinejs.dev/essentials/installation#as-a-module)You can't delay the CDN version any further than deferring the script