Live data from Hacker News

Ask HN: What companies are embracing “HTML over the wire”?

news.ycombinator.com

191–192 of 192 posts

Re: Ask HN: What companies are embracing “HTML over the wire”?

#191

Earlier quoted context omitted.

Unpoly ( https://unpoly.com/ ) should be mentioned as well. Much like htmx but with more features.

Are you aware of any ecommerce sites currently using unpoly?

I wrote my own unpoly (so to speak) to transition from React, for a pretty big ecommerce marketplace: https://solovyov.net/blog/2020/a-tale-of-webpage-speed-or-th...

Re: Ask HN: What companies are embracing “HTML over the wire”?

#192

Earlier quoted context omitted.

I’ve never tried it, but my understanding is when JS is disabled HN fires off a GET request (via a link) and returns a 204 to prevent browser navigation, right?

Interestingly enough, although javascript gets used, the vote links don't trigger an XHR request - instead the javascript parses the vote URL from the vote button element and then a GET request is made by creating an Image object in JS. You can see votes appear on your network tab under the image tab instead of Fetch/XHR, even though their response return type is text/html -- interesting little hack, although I'm not…

The vote/downvote buttons do not require JS. You can verify this in the same, under the network tab. There is disallowed JS request, but the vote succeeds independent of the JS not being allowed.
Post reply on HN