ancient-shoe-86801
12/22/2022, 6:40 PMancient-shoe-86801
12/22/2022, 6:41 PMancient-shoe-86801
12/22/2022, 6:43 PMancient-shoe-86801
12/22/2022, 6:44 PMorder_by=-timestamp
ancient-shoe-86801
12/22/2022, 6:44 PMancient-shoe-86801
12/22/2022, 6:45 PMpolite-glass-80210
12/22/2022, 6:46 PMancient-shoe-86801
12/22/2022, 6:51 PMpolite-glass-80210
12/22/2022, 6:52 PMpolite-glass-80210
12/22/2022, 6:59 PMload
special event get triggered? You enter a URL, it sends a request to the server, it does what it needs to do to generate the page HTML, then that gets returned. Lets say the server takes 1s to generate and return the page - obviously the AJAX can't be triggered during that time. The browser will then start rendering the html and sends out a bunch of concurrent requests for css, js, etc... Does the load
get triggered right at the start of this process, or sometime later? I hope I'm being clear/making sense...worried-hair-75253
12/22/2022, 7:00 PMancient-shoe-86801
12/22/2022, 7:03 PMpolite-glass-80210
12/22/2022, 7:03 PMpolite-glass-80210
12/22/2022, 7:04 PMlimited-potato-46306
12/22/2022, 7:43 PMmysterious-toddler-20573
12/22/2022, 7:52 PMload
is fired when an element is processed by htmx, either on the initial page load or when new content is added via an htmx-based requestmysterious-toddler-20573
12/22/2022, 7:54 PMmysterious-toddler-20573
12/22/2022, 7:55 PMdev
branch or you can set the htmx.config.historyCacheSize
config item to 0
mysterious-toddler-20573
12/22/2022, 7:55 PMpolite-glass-80210
12/22/2022, 7:56 PMlimited-potato-46306
12/22/2022, 8:17 PMlimited-potato-46306
12/22/2022, 8:55 PMmysterious-toddler-20573
12/22/2022, 8:57 PMfreezing-controller-74032
12/23/2022, 1:47 PMfreezing-controller-74032
12/23/2022, 1:47 PMfreezing-controller-74032
12/23/2022, 1:49 PMmost-jelly-15242
12/23/2022, 2:35 PMHX-Trigger
response header https://htmx.org/headers/hx-trigger/ . You could also listen to the htmx:afterSwap
event to run your function https://htmx.org/events/#htmx:afterSwaplimited-potato-46306
12/23/2022, 3:26 PMlimited-potato-46306
12/23/2022, 3:27 PMimportant-cricket-63511
12/23/2022, 7:45 PMsetInterval
(or something), then that's trickier.