News for hackers. Stuff that matters.
Re:Why we use progressive enhancement to build Gov.uk by adrianratnapala on Tuesday September 20, 2016 @05:57AM (#12538284)
I like the reasons they give why users might not have JS, even though they haven't blocked it themselves. Here are three:

* user’s hotel is intercepting the connection and injecting broken JavaScript

* user’s telecoms provider is intercepting the connection and injecting broken JavaScript

* user’s country is intercepting the connection and injecting broken JavaScript

Broken or not: all three of those sound like good reasons to intentionally block JS.

Re:Why we use progressive enhancement to build Gov.uk by josteink on Tuesday September 20, 2016 @06:28AM (#12538389)
* ...provider is intercepting the connection and injecting broken JavaScript

Who the hell puts up with stuff like this? Is this real?

If so, time to switch provider. Really.

Re:Why we use progressive enhancement to build Gov.uk by joelanman on Tuesday September 20, 2016 @06:45AM (#12538454)
Re:Why we use progressive enhancement to build Gov.uk by robin_reala on Tuesday September 20, 2016 @06:54AM (#12538496)
See also: https://www.mysociety.org/2011/08/11/mobile-operators-breaki... where O2 stripped JS comments, without checking to see whether those comment delimiters were part of a string.
Re:Why we use progressive enhancement to build Gov.uk by mattnewton on Tuesday September 20, 2016 @01:46PM (#12541481)
Yes, the unfortunate reality is a lot of places have de-facto monopolies in the US, but the monopolies get to claim there is still a free market by pointing to dial up or spotty satellite connections.
Re:Why we use progressive enhancement to build Gov.uk by theandrewbailey on Tuesday September 20, 2016 @11:52AM (#12540453)
The user might not have another provider capable of fulfilling their needs. Either too laggy, too slow, too expensive, unacceptable data caps, or not mobile. It's completely possible for the user to live in an area where slow DSL is their only broadband option, the cell phone signal is weak, and the user can't afford satellite.
Re:Why we use progressive enhancement to build Gov.uk by robin_reala on Tuesday September 20, 2016 @11:54AM (#12540466)
…locked in on a contract for 2 years, provided for them by their company, provided for them by their family, etc etc.
Re:Why we use progressive enhancement to build Gov.uk by DanBC on Tuesday September 20, 2016 @06:46AM (#12538463)
I think all mobile providers in UK do it, especially around downgrading images.
Re:Why we use progressive enhancement to build Gov.uk by josteink on Tuesday September 20, 2016 @07:49AM (#12538747)
At that point I would either be switching providers to someone who didn't mangle my signal (because that's effectively what this is), or if that for some reason wasn't doable, I would at least install a VPN to a known secure, untampered connection (like my home router) and route everything through that connection.

Having someone intercept my signal and process it behind my back is simply not something I would tolerate from any communications-service provider I employ.

Re:Why we use progressive enhancement to build Gov.uk by paublyrne on Tuesday September 20, 2016 @07:53AM (#12538773)
You are part of a tiny minority who has the technical interest / proficiency to do this.
Re:Why we use progressive enhancement to build Gov.uk by moreati on Tuesday September 20, 2016 @02:53PM (#12542187)
To my knowledge Three UK doesn't. That's based on using them and not noticing any degradation, or the click-to-view-original-quality javascript that T-Mobile were (are?) injecting.
Re:Why we use progressive enhancement to build Gov.uk by aarongustafson on Wednesday September 21, 2016 @11:10AM (#12548859)
Re:Why we use progressive enhancement to build Gov.uk by markdown on Tuesday September 20, 2016 @04:36PM (#12543145)
Vodafone (Fiji) used to do this.

They did honour the 'Cache-Control: no-transform' header though, so every site I build now includes that directive.

Re:Why we use progressive enhancement to build Gov.uk by allendoerfer on Tuesday September 20, 2016 @06:16AM (#12538336)
These are not solved by progressive enhancement but by SSL.
Re:Why we use progressive enhancement to build Gov.uk by asib on Tuesday September 20, 2016 @06:19AM (#12538350)
The author doesn't say that they are, he's simply listing reasons that a user may have JS disabled, and hence why it's a good idea to employ progressive enhancement, so that such users are not entirely locked out of using your app.
Re:Why we use progressive enhancement to build Gov.uk by allendoerfer on Tuesday September 20, 2016 @06:22AM (#12538365)
If you want to tackle these specific reasons, just serve the site via SSL. Other reasons for progressive enhancements might still persist, but the listed cause bigger troubles than "JavaScript does not work correctly" and SSL is a complete solution to all of them.
Re:Why we use progressive enhancement to build Gov.uk by richmarr on Tuesday September 20, 2016 @07:01AM (#12538520)
You're conflating user and service designer here. The user has a problem (including but not limited to those listed) and so turns off JS. The service then has the problem that JS is disabled... no amount of SSL will help if your pages require JS to load.

Edit to clarify: The user turning off JS and using the service are likely to happen at entirely different times. If you browse with JS turned off, it's likely off by default and only enabled when needed (if at all).

Re:Why we use progressive enhancement to build Gov.uk by lmm on Tuesday September 20, 2016 @08:10AM (#12538855)
How many users actually disable JS for these (or any other) reasons? Might it be cheaper to e.g. have a call center that trained to use the website on behalf of such users, rather than increasing the development costs of every government site?
Re:Why we use progressive enhancement to build Gov.uk by robin_reala on Tuesday September 20, 2016 @08:23AM (#12538917)
Last time we checked we get ~180k visits a month from people who specifically disable JS, ~810k further visits a month from people who don’t have JS available.

So no, it’d be more expensive to have a call centre.

Re:Why we use progressive enhancement to build Gov.uk by asib on Tuesday September 20, 2016 @08:27AM (#12538935)
I don't like this idea because it sacrifices ease of use in order to make small savings during the development phase. You shouldn't subject your users to extra grate where possible, and I think this is especially true for a government site.
Re:Why we use progressive enhancement to build Gov.uk by richmarr on Tuesday September 20, 2016 @10:24AM (#12539727)
My suspicion is that maintaining a call centre is more expensive than using progressive enhancement... but it's a fair question.

You're also assuming that starting from a simple HTML implementation is more expensive than other methods. I'm not sure that's the case.

As a rule, in terms of accessing public services at least, I'd be inclined to be very careful to make sure it was as accessible as possible.

Re:Why we use progressive enhancement to build Gov.uk by Angostura on Tuesday September 20, 2016 @11:28AM (#12540243)
"The user's service provider or corporate firewall blocks ssl"
Re:Why we use progressive enhancement to build Gov.uk by neximo64 on Tuesday September 20, 2016 @07:09AM (#12538553)
Not everywhere, sometimes organisations such as the university i'm in make you install a certificate to access the network.

SSL is supposed to work a certain way, in practice it doesn't always work that way.

Re:Why we use progressive enhancement to build Gov.uk by zeveb on Tuesday September 20, 2016 @11:05AM (#12540053)
SSL won't do any good against a nation-state with a CA key, so it won't do any good against JavaScript injection by such a state.
Re:Why we use progressive enhancement to build Gov.uk by pmlnr on Tuesday September 20, 2016 @06:18AM (#12538345)
How exactly SSL will solve this when there is a middleman proxy?
Re:Why we use progressive enhancement to build Gov.uk by allendoerfer on Tuesday September 20, 2016 @06:24AM (#12538372)
It is the whole point of SSL that there are not any.
Re:Why we use progressive enhancement to build Gov.uk by robin_reala on Tuesday September 20, 2016 @06:26AM (#12538384)
My last point about the user’s country linked to the example of Kazakhstan, where all HTTPS traffic is blocked unless you install a government-supplied middleman cert.
Re:Why we use progressive enhancement to build Gov.uk by pjc50 on Tuesday September 20, 2016 @07:18AM (#12538602)
And here's a good example of one hand giving while the other takes away; other parts of the UK government are quite cozy with Kazakhstan. We probably sold them the HTTPS interception solution.
Re:Why we use progressive enhancement to build Gov.uk by zeveb on Tuesday September 20, 2016 @11:07AM (#12540071)
> It is the whole point of SSL that there are not any [middleman proxies].

Hahahahahaha, you should do stand-up!

In my more cynical moments, I wonder if the whole point of SSL is to obscure when middleman proxies are in use.

Seriously, examine your browser's trusted CA list. Do you really trust every single one of those CAs to vouch for any website in the world?

Re:Why we use progressive enhancement to build Gov.uk by CJefferson on Tuesday September 20, 2016 @12:34PM (#12540816)
If someone has got a CA to produce a fake certificate for your website, you have more serious things to worry about that progressive enhancement!
Re:Why we use progressive enhancement to build Gov.uk by NoGravitas on Tuesday September 20, 2016 @07:48AM (#12538740)
Unfortunately, most employers and many countries violate this expectation. I expect businesses providing wifi to customers to start doing this, too.
Re:Why we use progressive enhancement to build Gov.uk by madeofpalk on Tuesday September 20, 2016 @10:04AM (#12539556)
I don't know about 'most' employers - so far I haven't worked for one that has. But I'm sure there are many that do.
Re:Why we use progressive enhancement to build Gov.uk by aarongustafson on Wednesday September 21, 2016 @11:11AM (#12548872)
Re:Why we use progressive enhancement to build Gov.uk by yread on Tuesday September 20, 2016 @11:38AM (#12540319)
If they inject broken JS, JS execution can stop and if you're not careful you might end up with a broken page.
Re:Why we use progressive enhancement to build Gov.uk by pluma on Tuesday September 20, 2016 @07:46AM (#12538728)
Also good reasons to use HTTPS.