future-library-81302
12/31/2021, 6:36 PMmysterious-toddler-20573
12/31/2021, 6:40 PMconsole.log to that and see if it is even firing? Push come shove, the hx-headers attribute can also do that for youfuture-library-81302
12/31/2021, 7:10 PMfuture-library-81302
12/31/2021, 7:10 PMfuture-library-81302
12/31/2021, 7:11 PMfuture-library-81302
12/31/2021, 7:11 PMfuture-library-81302
12/31/2021, 7:12 PMfuture-library-81302
12/31/2021, 7:13 PMfuture-library-81302
12/31/2021, 7:13 PMfuture-library-81302
12/31/2021, 7:13 PMfuture-library-81302
12/31/2021, 7:21 PMgorgeous-ghost-95789
12/31/2021, 7:22 PMgorgeous-ghost-95789
12/31/2021, 7:24 PMgorgeous-ghost-95789
12/31/2021, 7:24 PMmysterious-toddler-20573
12/31/2021, 7:30 PMmysterious-toddler-20573
12/31/2021, 7:30 PMmysterious-toddler-20573
12/31/2021, 7:31 PMfuture-library-81302
12/31/2021, 7:39 PMwhite-motorcycle-95262
12/31/2021, 8:36 PMbase.html template that contains my menu header, a footer with firm info, and loads css in the header and js in the footer. It has a #content div that HTMX will target to "change pages"
2) Navigating to /about/ from outside loads the full base.html template and the content from an About page in the #content div, but if you're at /home/ and click on a link to the About page, it loads the page using HTMX.
3) I have scripts that I want run on the About page. These scripts depend on libraries that are included in the footer of the base.html template, so including a <script> tag in my partial works becuase the footer has already been loaded, but it won't work if the page is accessed directly (i.e., not from HTMX) since the footer hasn't loaded at that point.gorgeous-ghost-95789
12/31/2021, 8:37 PM<script> tag at the top of that partial.white-motorcycle-95262
12/31/2021, 8:40 PM<script> is seen on initial load (before the full body template has loaded). Loading the JS libraries in the <head> would probably solve this, but I thought it was best practices to load libs in the footeradamant-exabyte-92636
12/31/2021, 11:08 PMadamant-exabyte-92636
12/31/2021, 11:09 PMmysterious-toddler-20573
01/01/2022, 1:43 AMfuture-library-81302
01/01/2022, 2:23 AMfuture-library-81302
01/01/2022, 2:23 AMfuture-library-81302
01/01/2022, 2:23 AMfuture-library-81302
01/01/2022, 2:24 AMfuture-library-81302
01/01/2022, 2:25 AMfuture-library-81302
01/01/2022, 2:51 AM