green-activity-6102
10/07/2022, 5:04 PMhx-
attributes during my manual swap... i can do a simple innerHTML replacement but that may not be what the srcElement specifiedgreen-activity-6102
10/07/2022, 5:40 PMswap()
function was on the public API πmysterious-toddler-20573
10/07/2022, 5:53 PMgreen-activity-6102
10/07/2022, 6:49 PMhx-
attrs, it needs to be processed after it's swapped.. this is turning out to be more complicated than i had hopedgreen-activity-6102
10/07/2022, 6:49 PMmysterious-toddler-20573
10/07/2022, 7:04 PMgreen-activity-6102
10/07/2022, 7:08 PMgreen-activity-6102
10/07/2022, 7:10 PMonEvent
extension hookgreen-activity-6102
10/07/2022, 7:11 PMhandleSwap
π€green-activity-6102
10/07/2022, 7:24 PMgreen-activity-6102
10/07/2022, 7:24 PMonEvent
and calling process
on the swapped node after i swap it πsquare-oyster-36295
10/07/2022, 8:30 PMmysterious-toddler-20573
10/07/2022, 9:34 PMmysterious-toddler-20573
10/07/2022, 9:35 PMmysterious-toddler-20573
10/07/2022, 9:35 PMmost-flag-2080
10/07/2022, 10:02 PMmost-flag-2080
10/07/2022, 10:02 PMsquare-oyster-36295
10/07/2022, 10:02 PMsquare-oyster-36295
10/07/2022, 10:13 PMsquare-oyster-36295
10/07/2022, 10:15 PMmysterious-toddler-20573
10/07/2022, 10:29 PMhtmx:afterRequest
event: https://htmx.org/events/#htmx:afterRequest you can grab the xhr, get the content out and have a go at the header. @most-flag-2080 is right in this case: Turbolinks I believe has been doing this for a long time. The boost functionality was added to htmx as an afterthought, I was more focused on making HTML more expressive and it felt too "magical" to me, so I kept it simple and effectively said "load all your JS up front or inline (w/ hyperscript. for example").mysterious-toddler-20573
10/07/2022, 10:30 PMsquare-oyster-36295
10/07/2022, 10:57 PMup.compiler()
(https://unpoly.com/up.compiler), which is quite an elegant way, but it also has certain limits for large projects, especially due to the impossibility of using lazy-loading techniques effectively.
If we were not concerned with performance, of course we would load all the styles and JavaScripts for the entire website/application directly on the homepage, but this is not a suitable way.mysterious-toddler-20573
10/07/2022, 11:01 PMmysterious-toddler-20573
10/07/2022, 11:02 PMmysterious-toddler-20573
10/07/2022, 11:02 PMsquare-oyster-36295
10/07/2022, 11:17 PMmysterious-toddler-20573
10/07/2022, 11:28 PMbroad-baker-92644
10/08/2022, 4:34 AMbrainy-ice-92385
10/08/2022, 6:53 AM