News for hackers. Stuff that matters.
Re:The web looks like shit by rayiner on Thursday April 06, 2017 @09:47AM (#14050429)
As someone who grew up on the web circa 1998, I find the modern web to be shit. The old web flew on my 300 MHz PII with 256 Kbps DSL. The new web crawls on a quad core i7 with 300 Mbps fiber.

But Sturgeon's law being what it is, we're probably stuck with a shitty web. But I wonder if browser makers can do anything to ease the pain a bit. For example, a page will reflow a few times while it loads, making it hard to start reading immediately. I'll often be mousing to the thing I want to click on next only to see everything move. Could browsers coalesce these reflows so that only completed pages are presented to the user?

Re:The web looks like shit by acdha on Thursday April 06, 2017 @10:07AM (#14050600)
As someone who started creating web apps in 1995, I think that view is mostly based on memories of subjective perception: pages were smaller, yes, but people expected the web to be slow in the dial-up era and were less likely to remember a site which loaded in 5 seconds as “slow” when everything was like that; now that some pages are Google.com fast the expectation is much less forgiving.

That's not to say that there haven't been problems with ads, gratuitously bloated JavaScript, etc. but it's easy to forget that back in the 90s there were a ton of pages which only worked well on then-fast (T1+) connections or relied on Java or Shockwave (not Flash, the Macromedia plugin before Adobe acquired them) and took a solid 30 seconds of swapping just to start up.

The one thing we've definitely seen a big regression on were pages which cannot be used if any part of a huge amount of JavaScript fails, and I'm really glad that mobile devices have been reminding the entire industry why progressive enhancement is still critically important.

Re:The web looks like shit by Touche on Thursday April 06, 2017 @09:53AM (#14050476)
I don't disagree that the old web was aesthetically nicer, but nothing flew on 14.4 or 28k modems. I remember when 56k came out and everyone was like "WOW!".
Re:The web looks like shit by guiscreenshots on Thursday April 06, 2017 @10:01AM (#14050540)
OP wasn't talking about 14.4 - 56k. They said: "256 Kbps DSL"
Re:The web looks like shit by Touche on Thursday April 06, 2017 @10:09AM (#14050614)
Sorry, I missed that somehow. I don't recall DSL being around in 1998 (but I'm sure my memory is just wrong). I got on the web around 1994 and it felt like many years before we had DSL or cable internet.

Anyways, I do agree that the 90s web was nicer in many ways. One thing I miss greatly is that people actually hand-crafted websites back then. Sure, they used frames and had construction gifs... but they were hand-crafted. If you searched for "star wars" you got a couple dozen sites that were all different looking (but had similar content). Today this is virtually unheard of. Go try to find a star wars fan website that doesn't use Wikia or some other similar tool.

Re:The web looks like shit by nojvek on Thursday April 06, 2017 @10:42AM (#14050922)
May be Google can start lowering rank of shitty pages. Oh but those shitty pages have Google ads so they'll lose revenue and their stock would tank.

Also why would a news website care if you have a shitty experience. Their A/B tests are saying customers are more likely to click on ads and sign up if they use the dark patterns.

Their end goal is to make more money. That's what they are optimizing for. If you don't like it, don't go to the website. That's the only signal they give a shit about.

Re:The web looks like shit by acdha on Thursday April 06, 2017 @10:10AM (#14050621)
Very few people had speeds in that range — most pages were developed with the assumption that they'd be used by someone on dial-up (and probably 28.8k). It'd be like saying you don't understand why people are complaining now about a slow site when you're using over a 1Gbps fiber connection.
Re:The web looks like shit by manwithaplan on Thursday April 06, 2017 @09:54AM (#14050484)
Re:The web looks like shit by pcwalton on Thursday April 06, 2017 @01:34PM (#14052676)
> I wonder if browser makers can do anything to ease the pain a bit. For example, a page will reflow a few times while it loads, making it hard to start reading immediately. I'll often be mousing to the thing I want to click on next only to see everything move. Could browsers coalesce these reflows so that only completed pages are presented to the user?

Speaking as someone who's worked on browser engines for years now, this is a hard problem. The semantics of the Web demands immediate, synchronous reflows: after performing DOM mutations, any script running on the page can ask for the location of any element on the page, and it requires an up-to-date answer. These APIs are used a lot: almost any news site, for example, is going to use them during initial page load (e.g. for ad placement). So we have to reflow during initial page load.

You might then ask: Why not perform the reflow "in the background" so that the DOM APIs doesn't break, but present a static version of the page as it was initially to the user? The problem with that is that clicking on links (or even mousing over them) is a DOM event that script can be involved in. Besides the fact that you'd basically have to have two simultaneous versions of the DOM around, you'd (for example) break scripts that expect the X/Y coordinates of a mouse-down event on a button to occur inside the boundaries of the button.

Browsers have been coalescing reflows as much as possible within the constraints of the Web, and have for at least a decade. But the semantics of the Web limit what can be done.

Re:The web looks like shit by grenoire on Thursday April 06, 2017 @09:53AM (#14050475)
Waiting for completed pages simply takes way too long. Seems like there isn't a way to automatically 'skeleton-ize' the page either. So; it is the sites' responsibility to prevent reflows.
Re:The web looks like shit by SamBam on Thursday April 06, 2017 @10:02AM (#14050551)
The simplest thing would be for sites to add fixed-sized containers for the ads and other heavy, asynchronous media, so that the space is already allocated before the ad loads. They could even put something nice in the background.

However, I'm fairly certain that they do it on purpose to increase the click-throughs to ads. Sites like Salon on my phone are the worst. No matter how much time has passed since it looks like everything has finished loading, the moment I go to click on a link an ad pops up under my thumb.