gorgeous-ghost-95789
09/11/2020, 10:28 PMgorgeous-ghost-95789
09/11/2020, 10:29 PMthankful-monkey-57044
09/12/2020, 9:08 PMthankful-monkey-57044
09/12/2020, 9:16 PMmysterious-toddler-20573
09/12/2020, 9:33 PMhelpful-nail-91069
09/13/2020, 9:02 AMhelpful-nail-91069
09/13/2020, 9:04 AMhx-ext
attribute be used for adding any logic to elements, both on initial page load and after a swap? Or is it only for extending htmx's functionality, and should I use something like Stimulus?helpful-nail-91069
09/13/2020, 9:06 AMhelpful-nail-91069
09/13/2020, 12:19 PMhelpful-nail-91069
09/13/2020, 12:42 PMhelpful-nail-91069
09/13/2020, 12:43 PMmost-jelly-15242
09/13/2020, 12:56 PMmost-jelly-15242
09/13/2020, 12:57 PMmost-jelly-15242
09/13/2020, 12:58 PMhelpful-nail-91069
09/13/2020, 1:09 PMmost-jelly-15242
09/13/2020, 1:17 PMmost-jelly-15242
09/13/2020, 1:18 PMmost-jelly-15242
09/13/2020, 1:20 PMhelpful-nail-91069
09/13/2020, 1:28 PMmost-jelly-15242
09/13/2020, 1:41 PMmysterious-toddler-20573
09/13/2020, 2:25 PMhtmx.load
event is that it is triggered only on the top node of new content, and you are expected to process all the content below the new node yourself.mysterious-toddler-20573
09/13/2020, 2:29 PMmysterious-toddler-20573
09/13/2020, 2:30 PMHX-Retarget
response headermysterious-toddler-20573
09/13/2020, 2:33 PMmysterious-toddler-20573
09/13/2020, 2:37 PMhtmx:load
event to process new content inserted by htmx:
https://github.com/bigskysoftware/_hyperscript/blob/04f8fd2d6161f7269ca7f1ca4217beadac64df1f/src/_hyperscript.js#L1771
but it runs its own selector on the new content:
https://github.com/bigskysoftware/_hyperscript/blob/04f8fd2d6161f7269ca7f1ca4217beadac64df1f/src/_hyperscript.js#L602
and is careful to not initialize the content twice:
https://github.com/bigskysoftware/_hyperscript/blob/04f8fd2d6161f7269ca7f1ca4217beadac64df1f/src/_hyperscript.js#L614mysterious-toddler-20573
09/13/2020, 3:55 PMmysterious-toddler-20573
09/13/2020, 3:55 PMmysterious-toddler-20573
09/13/2020, 3:55 PMmysterious-toddler-20573
09/13/2020, 4:07 PM