News for hackers. Stuff that matters.
Re:Htmx 2.0.4 Released by bdcravens on Friday December 13, 2024 @11:31PM (#42414701)
Any resource (ie page/URL) should function correctly with no regard to how that resource was loaded. That's the contract any server has with the client (browser), with no regard to what technology is being used to deliver the resource.

If a website or application basically has to do the 2024 equivalent of "don't hold it that way", it's the result of a broken development model.

Re:Htmx 2.0.4 Released by benatkin on Friday December 13, 2024 @11:36PM (#42414715)
The correct function comes down to what the browser APIs say is valid in navigation. Both loading cached data and making the request again are valid. In the case of soft page navigation (onpushstate/onreplacestate) it's very clear that both are valid, as SPAs aren't expected to cache nothing, nor are they expected to cache everything.
Re:Htmx 2.0.4 Released by withinboredom on Saturday December 14, 2024 @05:30AM (#42416091)
If I’m currently filtering some search data and hit refresh (or the browser tab went to sleep and wakes up, or restored after a reboot) I expect it to be in the same place without having to search and filter again.
Re:Htmx 2.0.4 Released by benatkin on Saturday December 14, 2024 @11:43AM (#42418080)
Re:Htmx 2.0.4 Released by withinboredom on Saturday December 14, 2024 @02:40PM (#42418974)
You would(n't) be surprised how many applications don't use this great feature.