Live data from Hacker News

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

news.ycombinator.com

141–150 of 192 posts

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

#141
post #126

Earlier quoted context omitted.

For me, HN handles votes using deep links, since I have JS disabled.

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 quite sure why it's done this way instead of fetching since it already requires JS.

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

#142
post #67

Earlier quoted context omitted.

Having only worked at SPA places, it's hard for me to imagine not having tools like Storybook, Chromatic, and Mocked Service Workers. Building the UI in isolation means with mocked API responses means I can, in parallel, validate 1000's of use cases with pixel-level precision. The backend teams can keep their focus on scalable, performant APIs. The frontend teams can focus on accessibility, consistency, etc. I've fou…

At what cost? You can validate 1000s of use cases but you can't validate one that doesn't include that 25m download and simulate what a real user experiences. Are developer tools more important than the product they create?

[deleted]

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

#143
post #105

Earlier quoted context omitted.

You cannot wait on round trips to the server for user interactions Old Reddit still works fine, and I’d argue better than new front end heavy Reddit. You are right it may be for the benefit developers, but Reddit isn’t complicated enough that a heavy front end provides much benefit to the users.

Old Reddit is significantly faster than new Reddit and I found it far nicer to use, but people in general didn’t like the “old, clunky” UI. Old Reddit was much maligned for how how it looked compared to modern sites.

> Old Reddit was much maligned for how how it looked compared to modern sites.

By young people, probably. Me and my friends that I know still use it prefer old.

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

#144

Earlier quoted context omitted.

Is that AirBnB stat including “content” stuff like images or embedded maps? It’s still worth critiquing the bandwidth spent on that stuff, of course, but it wouldn’t really be fair to include it here when the discussion is about the architecture of page transitions.

Page transitions are much faster for me on Wikipedia than on AirBnB. Whatever I click on AirBnB, I get a white screen, then some placeholders, then the placeholders one after the other get replaced by the actual content. Whatever I click on Wikipedia - its just there instantly.

Wikipedia - fancy html over wire (for example the searchbox)

AirBnB - client side spa.

the kind of page you like is the fancy html over wire kind

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

#145
100% JS fatigue after having worked as a professional full-stack JS dev for 8 years. Using Phoenix LiveView to build our MVP: https://github.com/dwyl/mvp haven’t written JS in months (except maintaining old Open Source packages) don’t miss it at all.

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

#146
post #130

Earlier quoted context omitted.

"Plain HTML" gmail vs. any other version. It's way faster to navigate. Remember when AJAX was supposed to make pages faster? LOL. Of course, back then we were just sending HTML to be injected, not JSON that has to be processed by 50+ Javascript functions before finally becoming HTML (or, some DOM entities, anyway).

> "Plain HTML" gmail vs. any other version. It's way faster to navigate. And offers far less features. Attaching a file to an email takes ages without drag and drop, this alone is worth waiting few more milliseconds to most people (Gmail loads in less than 2 seconds on my crappy hotel wifi)

It is not milliseconds on older devices and network is not always the bottleneck

Most of the time you read e-mails, not write them.

When you write e-mails, most of the time you don't need multiple attachments. The first attachment is reasonably fast to add.

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

#148
Browsing HN on lynx (not logged in, haven't figured out cookie jar, settings, etc) in the early morning, it was a completely different experience: a dark screen, monocolored text, and comments.

It felt like a darkened cafe of inquisitive, sometimes humorous--at turns indignant or snarky--conversation: even intimate, close-quarters, sipping at coffee or wine.

That's what I miss about HN's past feature: we can't browse to a segment of a day. The front page changes across twenty-four hours, an ebb and flow of ephemeral delights.

I guess that's what I'll set lynx with next: sessions, printing, and a way to quickly save snippets of text. The comments are so valuable for follow-up.

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

#150

old man alert Back in my day, we wrote ASP.NET that was all server-side-rendered HTML. Once in a while we got REAL FANCY and used JQuery to make PARTIAL HTML requests and update only FRAGMENTS of the page. Hooboy I knew that fashion was cyclical but not tech!

I forgot where I saw it but I recently read that McMaster-Carr has their setup with ASP.NET and their website is truly a beautiful form of software
Post reply on HN