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

    mysterious-toddler-20573

    08/03/2022, 12:32 PM
    I don't think we are at a spot yet that the complexity of a build system is worth it
  • m

    mysterious-toddler-20573

    08/03/2022, 12:32 PM
    otoh, it's open source so you can yank out whatever you want. History support would be the easiest to pull, if you aren't using that.
  • m

    mysterious-toddler-20573

    08/03/2022, 12:33 PM
    for htmx 2.0 I'd like to take a hard look at all the features and determine what is and is not core. For example, we are going to pull WebSockets and SSE out to enhancements.
  • g

    gorgeous-airport-54386

    08/03/2022, 12:41 PM
    if you write your code in modules, only the user needs a build system 😉
  • t

    tall-dinner-62086

    08/03/2022, 1:43 PM
    Even setting
    focus-scroll:false
    I still get scrolld to the new swapped in content
  • t

    tall-dinner-62086

    08/03/2022, 1:46 PM
    Should we care more about a web.dev score than the actual people running web.dev?
  • c

    clean-vegetable-65167

    08/03/2022, 1:51 PM
    of course, I was just curious if there are any options like that, considering that cache/history problem I found out that it was browser issue or difference let's say (for one user only actually) that he was presented with partial page from disk cache instead of full page when going back, solution was to disable cache header for htmx responses as these are always partial in my case and I never want it to present to the user as-is
  • t

    tall-dinner-62086

    08/03/2022, 2:01 PM
    I am going slightly crazy here with this scroll behavior. I've set a meta tag to turn the default to "false". I can verify that the value is false in my devtools console. I still get scrolled down to the content when I clink a link. I don't know where to even start trying to debug this
  • c

    calm-ice-23682

    08/03/2022, 2:08 PM
    did a quick search in here on "scroll" https://discord.com/channels/725789699527933952/725789747212976259/1002600434495664129
  • m

    mysterious-toddler-20573

    08/03/2022, 2:09 PM
    are you able to debug htmx?
  • m

    mysterious-toddler-20573

    08/03/2022, 2:09 PM
    https://github.com/bigskysoftware/htmx/blob/1aafebb0dae2b645c9a03469b1d2e1a71c1f5200/src/htmx.js#L2367
  • m

    mysterious-toddler-20573

    08/03/2022, 2:09 PM
    this is where we set the scroll state, so you can see what's going on
  • t

    tall-dinner-62086

    08/03/2022, 2:13 PM
    dangit webpack includes minified htmx even in dev mode.
  • t

    tall-dinner-62086

    08/03/2022, 2:20 PM
    ok so
    swapSpec.show
    is set to
    top
    which causes the scroll into view
  • t

    tall-dinner-62086

    08/03/2022, 2:22 PM
    Alright `hx-swap="outerHTML show:false"`fixed it. Thanks.
  • m

    mysterious-toddler-20573

    08/03/2022, 2:28 PM
    👍
  • m

    mysterious-toddler-20573

    08/03/2022, 2:28 PM
    sorry for the trouble
  • t

    tall-dinner-62086

    08/03/2022, 2:29 PM
    I should've read the docs more thoroughly, I was laser-focused on "scroll" and didn't even know about "show"
  • t

    tall-dinner-62086

    08/03/2022, 2:30 PM
    Here's a question, is it possible to make it scroll only if the element isn't already in view?
  • t

    tall-dinner-62086

    08/03/2022, 2:34 PM
    Actually nevermind
    show:window:top
    works for me
  • m

    mysterious-toddler-20573

    08/03/2022, 3:43 PM
    moved all the essays and stuff onto a single page: https://htmx.org/essays/
  • c

    careful-room-54859

    08/03/2022, 11:38 PM
    Hi everyone! Quick question, is it possible to use
    hx-boost
    inside a TD element? I am trying to boost a link to edit a record but it doesn't appear to be working.
  • m

    mysterious-toddler-20573

    08/04/2022, 12:08 AM
    hx-boost should work within a
    td
  • m

    mysterious-toddler-20573

    08/04/2022, 3:32 AM
    pretty incredible video mixing hyperscript and htmx on django:

    https://www.youtube.com/watch?v=lWdzCUxsMNc▾

  • h

    helpful-summer-17915

    08/04/2022, 5:28 AM
    is there something like https://datatables.net/ for htmx?
  • i

    incalculable-holiday-29658

    08/04/2022, 7:17 AM
    does htmx custom-events works on redirect?
  • t

    tall-dinner-62086

    08/04/2022, 8:13 AM
    Working with tables is a bit of a pain because all the html you return from the server needs to be strictly valid even if you just want a
    <td>
    . There was a config that made it easier to do, I think
    useTemplateFragments
    ?
  • c

    clever-dream-27353

    08/04/2022, 3:35 PM
    having some trouble trying to get the preload extension to work has anyone get an example anychance?
  • q

    quiet-angle-80724

    08/04/2022, 3:47 PM
    This thing should be in the top menu, maybe in a dropdown. Not so easy to find it in talk. I am sure essays are no less interesting than the lib itself. Gotta show you stuff)
  • c

    clever-dream-27353

    08/04/2022, 3:51 PM
    Trying to import extensions like
    Copy code
    import "htmx.org/dist/ext/preload";
    gives me htmx is undefined?
1...768769770...1146Latest