https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • e

    echoing-action-55459

    10/27/2022, 9:43 PM
    Hey I'm using deno fresh + tailwind + htmx, and I'm running into an issue where boosted doesn't apply the styles on the page. Is there a way to fix this without changing my html?
  • m

    mysterious-toddler-20573

    10/27/2022, 10:18 PM
    hey thomas, I am working on a head-support extension for the next release of htmx: https://github.com/bigskysoftware/htmx/blob/9c746848814584d79f93253efc140f008b51b2a2/src/ext/head-support.js
  • m

    mysterious-toddler-20573

    10/27/2022, 10:19 PM
    good timing:
  • m

    mysterious-toddler-20573

    10/27/2022, 10:19 PM
    what sort of semantics do you think it should have?
  • m

    mysterious-toddler-20573

    10/27/2022, 10:20 PM
    right now it "syncs" the head: * removes current head elements not in the new head * adds head elements in the new head but not in the current head * leaves elements present in both alone
  • m

    mysterious-toddler-20573

    10/27/2022, 10:20 PM
    I've started adding the ability to say things like "keep this in the head always" and "append these to the existing head", but I'm looking for real world use cases that validate the right behavior.
  • m

    mysterious-toddler-20573

    10/27/2022, 10:21 PM
    I'm starting to wonder if "append if it isn't in the existing head" isn't the right default
  • t

    tall-dinner-62086

    10/27/2022, 10:25 PM
    Elements present in both that are different should be swapped
  • e

    echoing-action-55459

    10/27/2022, 10:34 PM
    @mysterious-toddler-20573 I just dropped it in in, it seems to work, however... lol.. when it hit the back button the page is missing the styles for the original component
  • e

    echoing-action-55459

    10/27/2022, 10:35 PM
    I find my urls get pushed without
    hx-push-url="true"
    but I can try that
  • m

    mysterious-toddler-20573

    10/27/2022, 10:35 PM
    Do you have the version of htmx from that branch?
  • m

    mysterious-toddler-20573

    10/27/2022, 10:35 PM
    There is some work I had to do to make history surface enough information and events
  • e

    echoing-action-55459

    10/27/2022, 10:35 PM
    im using
    1.8.2
  • m

    mysterious-toddler-20573

    10/27/2022, 10:36 PM
    Yeah, you'll need to grab the htmx version from that branch:
  • e

    echoing-action-55459

    10/27/2022, 10:36 PM
    im working in deno using
    https://esm.sh/htmx.org@1.8.2
    🙃
  • m

    mysterious-toddler-20573

    10/27/2022, 10:36 PM
    https://github.com/bigskysoftware/htmx/blob/dev/src/htmx.js
  • m

    mysterious-toddler-20573

    10/27/2022, 10:37 PM
    I think I'll need another couple days to get this working right and think through all the different options unfortunately
  • e

    echoing-action-55459

    10/27/2022, 10:37 PM
    ok I think it works!
  • m

    mysterious-toddler-20573

    10/27/2022, 10:38 PM
    boosting wasn't a big focus of the library at the start ("Everyone uses turbolinks for that.") but I'm slowly catching it up in that department
  • m

    mysterious-toddler-20573

    10/27/2022, 10:38 PM
    got side tracked by a nasty history-in-iOS-safari issue unfortunately, was hoping to have this extension out this week.
  • e

    echoing-action-55459

    10/27/2022, 10:41 PM
    I create a HTMX plugin for fresh https://gist.github.com/reggi/24d52508b466fb80e9516e0e99329091 might need a #deno-htmx channel 🙂
  • m

    mysterious-toddler-20573

    10/27/2022, 10:42 PM
    #1035322456568770630 it is
  • m

    mysterious-toddler-20573

    10/27/2022, 10:42 PM
    @gorgeous-airport-54386 👆
  • e

    echoing-action-55459

    10/27/2022, 10:43 PM
    very excited that this head stuff works!
  • m

    mysterious-toddler-20573

    10/27/2022, 10:43 PM
    lol, "works"
  • m

    mysterious-toddler-20573

    10/27/2022, 10:43 PM
    we'll see!
  • m

    mysterious-toddler-20573

    10/27/2022, 10:43 PM
    You are user #2 I think
  • m

    mysterious-toddler-20573

    10/27/2022, 10:43 PM
    It'll be part of the next htmx release, prob next week.
  • m

    mysterious-toddler-20573

    10/27/2022, 10:43 PM
    Do you have any thoughts on the head semantics?
  • m

    mysterious-toddler-20573

    10/27/2022, 10:45 PM
    Initially I was thinking "sync" as @tall-dinner-62086 suggests, where the head will be sync'd to the new head content. But then, with partial replacement, I'm not sure that's ideal. I've started to wonder if "append if absent" is a better default
1...875876877...1146Latest