fresh-controller-36545
10/09/2021, 3:34 PMhx-boost is great. Even though it means no longer being able to rely on DOMContentLoaded afaik~mysterious-toddler-20573
10/09/2021, 3:44 PMfrom: syntax you have there, that's correct. Can you give me more details?mysterious-toddler-20573
10/09/2021, 3:45 PMmysterious-toddler-20573
10/09/2021, 3:46 PMDOMContentLoaded you can use htmx.onLoad() which will give you a shot at processing all content loaded by htmx, including the initial page: https://htmx.org/docs/#3rd-partyfresh-controller-36545
10/09/2021, 3:47 PMhx-trigger on the divs to be executed. I could of course put the hx-trigger on the button, but that would make the backend more complex.mysterious-toddler-20573
10/09/2021, 3:47 PMmysterious-toddler-20573
10/09/2021, 3:47 PMopen-sidebar is clickedfresh-controller-36545
10/09/2021, 3:48 PMhtmx:pushedIntoHistory is called; to ensure swapped pages are initialized properly.fresh-controller-36545
10/09/2021, 3:49 PMhtmx.onLoad would trigger every time, right? So when I have polling partials (hx-trigger="every 60s) that would cause some overheadmysterious-toddler-20573
10/09/2021, 3:49 PMfresh-controller-36545
10/09/2021, 3:49 PMmysterious-toddler-20573
10/09/2021, 3:55 PMmysterious-toddler-20573
10/09/2021, 3:55 PMadamant-exabyte-92636
10/09/2021, 5:45 PM<button id="doIt" hx-post="/doTheThing" hx-trigger="click[performSomeCheck('#doIt')]" ? I.e. instead of having to statically pass in the element id again to the click filter function performSomeCheck in this case ?mysterious-toddler-20573
10/09/2021, 5:47 PMadamant-exabyte-92636
10/09/2021, 5:52 PMmysterious-toddler-20573
10/09/2021, 6:06 PMadamant-exabyte-92636
10/09/2021, 6:06 PMmysterious-toddler-20573
10/09/2021, 6:10 PMadamant-exabyte-92636
10/09/2021, 6:16 PMminiature-controller-37356
10/09/2021, 10:27 PMic-action to htmx? Was quite practical. How else do you nowadays show a modal without hyperscript?miniature-controller-37356
10/09/2021, 10:28 PMhtmx:onLoad handlers that aren't accidentally carried onto the next page, when simulating a SPA.mysterious-toddler-20573
10/09/2021, 10:32 PMmysterious-toddler-20573
10/09/2021, 10:33 PMminiature-controller-37356
10/09/2021, 10:34 PMx-on ?mysterious-toddler-20573
10/09/2021, 10:34 PMminiature-controller-37356
10/09/2021, 10:34 PMminiature-controller-37356
10/09/2021, 10:34 PMmysterious-toddler-20573
10/09/2021, 10:35 PMmysterious-toddler-20573
10/09/2021, 10:35 PM