Skip to content

x-sort initialization order (as per docs) #4385

Answered by ekwoka
Aurrix asked this question in 5. Bugs
Discussion options

You must be logged in to vote

You call start after the Dom is loaded.

By making your scripts modules or defer

The original example in documentation simply does not work out of the box.

Yes it does.

So unless there is a bug something must be wrong in docu as it states that both alpinejs and sort plugin must be loaded after content is parsed (defered).

That's correct. The Docs say that, and thats true.

And its not about loading.

It's that Alpine.start() needs to be called only once the DOM is ready, or it will have issues.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Aurrix
Comment options

@ekwoka
Comment options

Answer selected by Aurrix
@Aurrix
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants