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

    mysterious-toddler-20573

    11/22/2022, 11:20 PM
    if you can run the unminified htmx, you can probably see what's going on
  • b

    brash-house-85887

    11/22/2022, 11:20 PM
    Yea, working on a codepen example. 🙂
  • m

    mysterious-toddler-20573

    11/22/2022, 11:22 PM
    https://github.com/bigskysoftware/htmx/blob/master/src/htmx.js#L827
  • m

    mysterious-toddler-20573

    11/22/2022, 11:22 PM
    this is my suspicion
  • b

    brash-house-85887

    11/22/2022, 11:28 PM
    Hmm, working on my personal laptop in codepen. I'll check it again on my work laptop later. Maybe hours of fighting with a nodejs syntax highlighter drove me crazy.
  • b

    brash-house-85887

    11/23/2022, 2:15 AM
    Yea, I had some bad HTML that was causing DOM issues. My apologies.
  • m

    mysterious-toddler-20573

    11/23/2022, 2:35 AM
    No prob glad it wasn’t a bug.
  • b

    brash-house-85887

    11/23/2022, 2:57 AM
    Now I've got Nirvana's "All Apologies" stuck in my head.
  • r

    ripe-hairdresser-53724

    11/23/2022, 9:23 AM
    If I had two components whose html I want to change from backend via websockets - do I need to have two websocket connections, one per each component, or I could stream changes to both components at once? Let's say two components are not nested on each other. Thanks a lot!
  • l

    loud-action-20310

    11/23/2022, 3:46 PM
    is there a way to trigger hx-get only when a div is actually revealed (originally hidden with css class, displayed by removing hidden class). think popover, modal. The
    revealed
    hx-trigger seems to firing immediately even though a div is hidden on page because the element is above the fold. Turbo has this concept applied as the lazy loading frames https://turbo.hotwired.dev/handbook/frames#lazy-loading-frames
  • r

    refined-waiter-90422

    11/23/2022, 5:28 PM
    Federated Twitter alternative idea: * single binary, embedded sqlite to host your own posts. * every post can have a hypertext based parent, creating threading * htmx properly configed with CORS for real time updates of posts. * search works by choosing a host or thread (multiple hosts). * can block people from parenting off your host.
  • r

    refined-waiter-90422

    11/23/2022, 5:30 PM
    Bring it back to the HTML roots of the web.
  • r

    ripe-action-67367

    11/23/2022, 5:39 PM
    sounds like something done with JS. In that case, you can trigger a custom event when the class is removed and use this event in hx-trigger
  • f

    freezing-waitress-26396

    11/23/2022, 5:46 PM
    Why not have every member get their own single HTML file instead oh wait that's basically cohost
  • g

    gorgeous-airport-54386

    11/23/2022, 5:47 PM
    why not just have everyone on a separate domain oh wait that's the indieweb
  • f

    freezing-waitress-26396

    11/23/2022, 5:47 PM
    I miss linkback banners
  • m

    mysterious-toddler-20573

    11/23/2022, 6:19 PM
    We are bringing back webrings
  • j

    jolly-kite-167

    11/23/2022, 8:39 PM
    pingbacks and trackbacks and webmentions, oh my!
  • b

    busy-tomato-43957

    11/23/2022, 9:12 PM
    is there a good way to make page refreshes always do a new GET instead of repeating the last POST made with htmx?
  • l

    loud-action-20310

    11/23/2022, 9:17 PM
    great tip with the event!
  • l

    loud-action-20310

    11/23/2022, 9:22 PM
    it even works correctly with the
    once
    modifier loading the contents only on the first open. so cool!
  • m

    mysterious-toddler-20573

    11/24/2022, 12:04 AM
    refreshes in what sense? In the control-R refresh sense? htmx should not cause a POST in that case.
  • s

    shy-zebra-22292

    11/24/2022, 5:15 AM
    Sounds randomly cool! But now tell me how would I read the tweets of people who are offline 😄
  • r

    refined-waiter-90422

    11/24/2022, 5:46 AM
    Heh could opt into an internet archive approach, where it could cache text only for only x months as a fallback only if people were offline. Would also serve as a global search/index. But to go deep into someones history, they'd have to be online.
  • r

    refined-waiter-90422

    11/24/2022, 5:47 AM
    Just one idea.. a lot of cool architectures open up when you return to the original design of the web.
  • r

    refined-waiter-90422

    11/24/2022, 5:54 AM
    Cant stop people from archiving your content, but you could have a flag on your side to tell people you trust specific internet archives.
  • r

    refined-waiter-90422

    11/24/2022, 6:00 AM
    The UX would totally have to be "double click the exe" then goto chrome/ff. Any config and one would lose 99% of people right away.
  • r

    refined-waiter-90422

    11/24/2022, 6:09 AM
    Embedded SQLite performance is pretty insane though... Faster than Redis for reads on NVME for my machine.
  • o

    orange-nail-40296

    11/24/2022, 6:36 AM
    Faster than the file system*! https://www.sqlite.org/fasterthanfs.html
  • o

    orange-nail-40296

    11/24/2022, 6:37 AM
    SQLite is awesome. Ben Johnson is doing great work at Fly.io https://fly.io/blog/introducing-litefs/ and https://litestream.io
1...920921922...1146Latest