News for hackers. Stuff that matters.
Re:Fastly Outage by gpm on Tuesday June 08, 2021 @08:16AM (#27434105)
> only Javascript did not exist, it would be impossible for UX people to come up with something that bad.

Arrange the html so that the list of comments is at the end (via css). Keep the http connection open, have the show more button send some of request, and when you receive that request send the rest of the page over the original http connection.

As usual, solve people problems via people, not tech.

Re:Fastly Outage by peq on Tuesday June 08, 2021 @08:53AM (#27434489)
How would you make the button send a request without js and without navigating to another page?

Maybe css to load an image on :active or is there some better way?

Re:Fastly Outage by chrismorgan on Tuesday June 08, 2021 @09:12AM (#27434692)
Here are two robust techniques that I haven’t seen actually employed in production for maybe fifteen years:

① A submit button or link targeting an iframe which is visually hidden. (Or even don’t hide it. If only seamless iframes had happened, or any other way of auto-resizing an iframe: relevant spec issues are https://github.com/whatwg/html/issues/555 and https://github.com/w3c/csswg-drafts/issues/1771.)

② A submit button or link to a URL that returns status 204 No Content.

(CSS image loading in any form is not as robust because some clients will have images disabled. background-image is probably (unverified claim!) less robust than pseudoelement content as accessibility modes (like high contrast) are more likely to strip background images, though I’m not sure if they are skipped outright or load and aren’t shown. :active is neither robust nor correct: it doesn’t respond to keyboard activation, and it’s triggered on mouse down rather than mouse up. Little tip here for a thing that people often get wrong: mouse things activate on mouseup, keyboard things on keydown.)

Re:Fastly Outage by the_gipsy on Tuesday June 08, 2021 @02:38PM (#27439118)
Mhhh, iframes all the way down. Could make a nice experiment.
Re:Fastly Outage by cmg on Tuesday June 08, 2021 @09:14AM (#27434704)
Yep:

.button:active { background-image: url('/some-reference-thats-actually-a-tracker'); }

Re:Fastly Outage by southerntofu on Tuesday June 08, 2021 @08:25AM (#27434193)
Well technically everything is possible. But Javascript was precisely designed to encourage this kind of patterns.

> As usual, solve people problems via people, not tech.

So true..