Skip to content

@load doesn't seem to work #4421

Answered by SimoTod
florian-sun asked this question in 1. Help
Oct 29, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

The load event is dispatched on the window object, not on the single html tags: https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event

You can use the window modifier, see https://alpinejs.dev/directives/on#window

Replies: 2 comments 3 replies

Comment options

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

@SimoTod
Comment options

@ekwoka
Comment options

Answer selected by florian-sun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants