News for hackers. Stuff that matters.
Re:A faster BBC News front page by afandian on Monday April 24, 2017 @07:17AM (#14183347)
Thanks for your reply!

- Chrome Version 57.0.2987.133 (64-bit)

- No-Script Live 0.2.4 http://mybrowseraddon.com/noscript-lite.html

- Privacy Badger 2017.4.19.1

FWIW Privacy Badger isn't blocking anything, I think this is all from script blocking. I notice that low-res images get sent by default, which suggests that the design conflates 'no script' with 'mobile'? That's not true at least in my case.

Here's my browser log. https://gist.github.com/afandian/b97fc7bb9f5e15f924acb770322...

Re:A faster BBC News front page by wldlyinaccurate on Monday April 24, 2017 @08:48AM (#14183847)
Thanks! We'll take a look at this ASAP. In the mean time, I guess all I can do is apologise for the broken experience...

We use a technique called cutting the mustard to determine whether a browser is modern (read: >=IE9). This allows us to write one set of CSS that should work in pretty much any web browser (we call this the "core" experience), and another set that uses modern-ish CSS (the "enhanced" experience). One of the major drawbacks to this technique is that the technique relies on JS — it is literally just modernBrowser = ('addEventListener' in window && 'querySelector' in document && 'localStorage' in window).

So when you browse the BBC News website with JS disabled, you are getting a page that has been styled to work on a Nokia E65, BlackBerry OS4, IE8, and everything in between. Unfortunately right now we don't have a way to give you the enhanced version of the page without JS. In the future it might be possible for us cut the mustard at the server (or the CDN edge) based on User-Agent but that isn't something I can see happening in the foreseeable.

Re:A faster BBC News front page by afandian on Monday April 24, 2017 @09:09AM (#14183976)
It's great that you're trying so hard to accomodate such a broad landscape; of course there will be trade-offs. Being a weird intentional corner-case you get what you ask for, I suppose!

Thanks for engaging with questions.

Re:A faster BBC News front page by corobo on Monday April 24, 2017 @07:47AM (#14183450)
> I notice that low-res images get sent by default, which suggests that the design conflates 'no script' with 'mobile'

Could also be javascript-powered lazy loading. Load the low res using HTML then swap out high-res when the user scrolls it into view

Re:A faster BBC News front page by afandian on Monday April 24, 2017 @08:06AM (#14183553)
I'm talking about the thinking that led to this, not the mechanism by which it works.

Why would you send a low resolution copy of the image first? Probably because you assume someone is on a low-bandwidth connection.

Re:A faster BBC News front page by corobo on Monday April 24, 2017 @08:12AM (#14183586)
To make the page load faster (the topic of this post)