https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • if scrolling or something
    c

    cuddly-keyboard-70746

    04/06/2023, 2:32 PM
    if scrolling or something
  • or if not doing any pagination
    c

    cuddly-keyboard-70746

    04/06/2023, 2:32 PM
    or if not doing any pagination
  • the request would be to big
    c

    cuddly-keyboard-70746

    04/06/2023, 2:32 PM
    the request would be to big
  • oh... they said pagination was not an option or something?
    c

    cuddly-keyboard-70746

    04/06/2023, 2:33 PM
    oh... they said pagination was not an option or something?
  • how slow is it to hold it in a js object and then use the client to render?
    c

    cuddly-keyboard-70746

    04/06/2023, 2:33 PM
    how slow is it to hold it in a js object and then use the client to render?
  • or just do paginate
    c

    cuddly-keyboard-70746

    04/06/2023, 2:34 PM
    or just do paginate
  • anyways, in any case I dont see a worker helping for this
    c

    cuddly-keyboard-70746

    04/06/2023, 2:35 PM
    anyways, in any case I dont see a worker helping for this
  • the point of the worker is to just put in another thread expensive computations like fetches and arrays manipulation which could help the ui being more responsive
    n

    numerous-agent-22346

    04/06/2023, 2:59 PM
    the point of the worker is to just put in another thread expensive computations like fetches and arrays manipulation which could help the ui being more responsive
  • you could try that but i dont see it helping. no cpu intensive task, the bottle neck seems rendering a bunch of html. if you paginate appending to the end of an array is extremely cheap
    c

    cuddly-keyboard-70746

    04/06/2023, 3:09 PM
    you could try that but i dont see it helping. no cpu intensive task, the bottle neck seems rendering a bunch of html. if you paginate appending to the end of an array is extremely cheap
  • we may be going off topic
    c

    cuddly-keyboard-70746

    04/06/2023, 3:10 PM
    we may be going off topic
  • for the channel, too
    c

    cuddly-keyboard-70746

    04/06/2023, 3:10 PM
    for the channel, too
  • Good morning all, My HTML5 validation errors are shown when the submit button is placed inside of the form tag but when its placed outside and the form is submitted using javascript like this: `htmx.trigger(form, 'submit-form');` , they do not. I am keeping the button outside mainly because I am dividing the layout into a header, a body and a footer section and the button is in the footer section. Any fixes or workarounds?
    g

    gray-morning-3453

    04/06/2023, 3:39 PM
    Good morning all, My HTML5 validation errors are shown when the submit button is placed inside of the form tag but when its placed outside and the form is submitted using javascript like this:
    htmx.trigger(form, 'submit-form');
    , they do not. I am keeping the button outside mainly because I am dividing the layout into a header, a body and a footer section and the button is in the footer section. Any fixes or workarounds?
  • ah ok. yeah then your solution does need js and virtual table and whatnot
    c

    cuddly-keyboard-70746

    04/06/2023, 9:11 PM
    ah ok. yeah then your solution does need js and virtual table and whatnot
  • seems out if scope for htmx
    c

    cuddly-keyboard-70746

    04/06/2023, 9:25 PM
    seems out if scope for htmx
  • Do you guys think HTMX can be used like datatables.js? I feel the Active Search example on the site is doing just that. Am I right?
    g

    gray-morning-3453

    04/07/2023, 7:14 AM
    Do you guys think HTMX can be used like datatables.js? I feel the Active Search example on the site is doing just that. Am I right?
  • I meant 'using htmx to create functionality similar to datatables.js
    g

    gray-morning-3453

    04/07/2023, 7:14 AM
    I meant 'using htmx to create functionality similar to datatables.js
  • should be fine
    m

    mysterious-toddler-20573

    04/07/2023, 5:13 PM
    should be fine
  • https://news.ycombinator.com/item?id=35485826
    m

    mysterious-toddler-20573

    04/07/2023, 8:09 PM
    https://news.ycombinator.com/item?id=35485826
  • > > Is there anything holding it back from larger adoption? > I don’t know or care. If I were the only one in the world using it, it would make no difference. It’s self-contained and trivial to self host. Big true
    r

    ripe-action-67367

    04/07/2023, 8:13 PM
    > > Is there anything holding it back from larger adoption? > I don’t know or care. If I were the only one in the world using it, it would make no difference. It’s self-contained and trivial to self host. Big true
  • Can I/should I `defer` htmx and hyperscript?
    r

    refined-manchester-67193

    04/08/2023, 12:13 AM
    Can I/should I
    defer
    htmx and hyperscript?
  • I know this depends on the use-cases, but I’m wondering if there are any gotchas or issues with that.
    r

    refined-manchester-67193

    04/08/2023, 12:13 AM
    I know this depends on the use-cases, but I’m wondering if there are any gotchas or issues with that.
  • you can use defer for both, but it can introduce ordering issues
    m

    mysterious-toddler-20573

    04/08/2023, 12:14 AM
    you can use defer for both, but it can introduce ordering issues
  • in general I don't think the small first-time render speed boost is worth it, but it very much depends on your use case
    m

    mysterious-toddler-20573

    04/08/2023, 12:14 AM
    in general I don't think the small first-time render speed boost is worth it, but it very much depends on your use case
  • Looking at some code, is it odd that `hx-boost="true"` seems to inject the entire response into the `body` tag? I thought that whole point was that it essentially does a `swap` with the new one. Almost like a background `hx-select`. Or am I off on that?
    f

    future-table-82610

    04/08/2023, 6:11 AM
    Looking at some code, is it odd that
    hx-boost="true"
    seems to inject the entire response into the
    body
    tag? I thought that whole point was that it essentially does a
    swap
    with the new one. Almost like a background
    hx-select
    . Or am I off on that?
  • r

    refined-waiter-90422

    04/08/2023, 6:19 AM

    https://cdn.discordapp.com/attachments/725789747212976259/1094144546599870484/image_3.png▾

  • I am testing something similar right now with go and gomponents and I’m really satisfied
    e

    echoing-lion-55988

    04/08/2023, 3:13 PM
    I am testing something similar right now with go and gomponents and I’m really satisfied
  • It's composable, reusable, and _so fast_.... 🙂 Some folks don't like it, but it really clicks for me.
    l

    late-king-98305

    04/08/2023, 3:41 PM
    It's composable, reusable, and so fast.... 🙂 Some folks don't like it, but it really clicks for me.
  • That particular application had a prior version that was a Vue front-end and a Go back-end. The server working memory set was ~10MB. _chef's kiss_
    l

    late-king-98305

    04/08/2023, 3:42 PM
    That particular application had a prior version that was a Vue front-end and a Go back-end. The server working memory set was ~10MB. chef's kiss
  • On some second thought this seems to be a me issue. Checking out a few other sites using `boost` the server returns the entire template and `htmx` swaps in only the `body` element. Now to figure out why mine inserts the entire template into `<body></body>`
    f

    future-table-82610

    04/08/2023, 4:12 PM
    On some second thought this seems to be a me issue. Checking out a few other sites using
    boost
    the server returns the entire template and
    htmx
    swaps in only the
    body
    element. Now to figure out why mine inserts the entire template into
    <body></body>
  • Ah ha! `useTemplateFragments` breaks `hx-boost`. Well there we go, now to solve javascript reloading. One step at a time...
    f

    future-table-82610

    04/08/2023, 4:21 PM
    Ah ha!
    useTemplateFragments
    breaks
    hx-boost
    . Well there we go, now to solve javascript reloading. One step at a time...
1...108810891090...1146Latest