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

    thankful-apartment-66679

    11/18/2022, 5:25 PM
    😮
  • m

    mysterious-toddler-20573

    11/18/2022, 5:25 PM
    https://developer.mozilla.org/en-US/docs/Web/Events
  • m

    mysterious-toddler-20573

    11/18/2022, 5:25 PM
    https://developer.mozilla.org/en-US/docs/Web/Events
  • m

    mysterious-toddler-20573

    11/18/2022, 5:25 PM
    (just to be sure)
  • s

    straight-appointment-14669

    11/18/2022, 5:27 PM
    Maybe one more ?
  • s

    some-airline-73512

    11/18/2022, 5:38 PM
    Thank you
  • t

    thankful-apartment-66679

    11/18/2022, 5:38 PM
    this channel is too helpful sometimes for its own good
  • s

    some-airline-73512

    11/18/2022, 5:38 PM
    I will dig into it. I spent in the past most of my attention on the backend, and now when build my startup need to get up to speed
  • s

    some-airline-73512

    11/18/2022, 5:40 PM
    One more thing, with htmx I get a lot of latency on buttons. How to get rid of this latency? Maybe prefetch it somehow, so at least the user doesn’t feel that
  • s

    some-airline-73512

    11/18/2022, 5:43 PM
    But still, there are some buttons that I don’t want them to be posted ahead of time, because of the side effects. How do you guys make really performant apps with htmx?
  • s

    some-airline-73512

    11/18/2022, 5:44 PM
    I’m building PPC platform and it’s has to be performant. But I don’t have the resources to hire 10 react developers and go crazy
  • t

    thankful-apartment-66679

    11/18/2022, 5:44 PM
    are you profiling the request? whats the bottleneck from the XHR?
  • s

    some-airline-73512

    11/18/2022, 5:45 PM
    That’s good question. I will profile and show
  • s

    some-airline-73512

    11/18/2022, 5:56 PM
    Queued at 0 Started at 1.86 ms Resource Scheduling DURATION Queueing ​ 1.86 ms Connection Start DURATION Stalled ​ 0.61 ms DNS Lookup ​ 11.26 ms Initial connection ​ 37.18 ms SSL ​ 18.92 ms Request/Response DURATION Request sent ​ 0.19 ms Waiting for server response ​ 771.36 ms Content Download ​ 19.68 ms Explanation 842.36 ms Does this mean that the server handler is slow? Not the latency
  • s

    some-airline-73512

    11/18/2022, 5:57 PM
    Or it means the content download is long?
  • t

    thankful-apartment-66679

    11/18/2022, 5:57 PM
    depends on the size of the content thats being downloaded, the speed of your internet connection, etc
  • t

    thankful-apartment-66679

    11/18/2022, 5:58 PM
    but also on the backend if there is a slow database call, if there is some bad logic thats taking a while, etc
  • m

    mysterious-toddler-20573

    11/18/2022, 5:58 PM
    look at your server logs and make sure your response time there is < 200ms
  • m

    mysterious-toddler-20573

    11/18/2022, 5:58 PM
    also, consider adding a request indicator
  • m

    mysterious-toddler-20573

    11/18/2022, 5:59 PM
    users typically don't mind waiting a moment if the computer tells them it is doing something useful
  • m

    mysterious-toddler-20573

    11/18/2022, 5:59 PM
    nav should be instant, but actions don't need to be
  • s

    some-airline-73512

    11/18/2022, 6:00 PM
    I see. My handler is 770ms
  • s

    some-airline-73512

    11/18/2022, 6:00 PM
    I will optimise it. thanks for the heads up again
  • m

    mysterious-toddler-20573

    11/18/2022, 6:00 PM
    also, see https://htmx.org/extensions/preload/ for pre-loading GETs
  • b

    boundless-vase-80440

    11/18/2022, 6:21 PM
    this extension is... amazing. so simple, so grug.
  • b

    boundless-vase-80440

    11/18/2022, 6:22 PM
    these last 2 weeks with HTMX have been like a debugger for my brain
  • s

    straight-appointment-14669

    11/18/2022, 6:23 PM
    2 weeks also , same feeling
  • m

    mysterious-toddler-20573

    11/18/2022, 6:32 PM
    courtesy of @gorgeous-ghost-95789 !
  • h

    hundreds-camera-24900

    11/18/2022, 9:09 PM
    I have been meaning for a while to poke at getting that preload extension to cache the results and swap vs just using the browser cache
  • l

    late-king-98305

    11/18/2022, 9:24 PM
    slide 2... - lol - lmao 😂
1...916917918...1146Latest