W3C home > Mailing lists > Public > public-web-perf@w3.org > December 2013

Re: detecting connection speed

From: Marcos Caceres <w3c@marcosc.com>
Date: Wed, 11 Dec 2013 19:40:07 +1000
To: Jake Archibald <jakearchibald@chromium.org>
Cc: Puneet Mohan Sangal <pmsangal@yahoo-inc.com>, public-web-perf <public-web-perf@w3.org>
Message-ID: <0BDEF579003E4ADB81920FC0C53178D0@marcosc.com>

On Wednesday, December 11, 2013 at 6:47 PM, Jake Archibald wrote:

> I'm not keen on use-cases that boil down to "if connection is < something, serve degraded experience".

Agree. That would totally suck.   
> My mobile provider uses a compression proxy and I hate it, I'd rather wait longer to avoid a sub-standard experience. If you've got users with slow connections, make your site faster for them by making your site faster for everyone. If that means loading in low res content then high res content to get to first render faster, this benefits everyone.

> Avoiding video autoplay on 3g, or warning about data use - this is valid but something the browser/os could do, especially as the user may have set data limits. This avoids every site having to implement the same messaging, and the user can "don't tell me again" these kind of messages at the browser/os level rather than per site.

That would be nice. I don’t think anyone does this (either OS level or Web browser) - but it could be handled at the <video> or <audio> level for sure.   
> Adapting during streaming of something - yeah, these are great, we need to enable this.

This is a video/audio streaming protocol problem, me thinks. Not in scope for this group.   
> Basically, if websites start offering a poor experience because of navigator.connectionType, then devices will lie so they get the better experience. See media="handheld" and user agent strings.


Note that I also don’t want web apps to try to be clever using this API (which they will undoubtedly f’up, as history teaches us) - but to provide *options* for the user to have some control over what is going on when it comes to large content downloads (particularly wrt how large amounts of data are handled).  

For example, the iOS Audible application giving me control, as a user, whether it can d/l 300mb audio books over cellular. That makes sense to me. Or the Facebook app, giving me the choice to “Auto-play videos on WIFI only” - that also makes sense to me. This is exactly what kind of choices iOS apps seem to provide - of the ones I have, I don’t see any making dumb decisions on my behalf (maybe they are, but I don’t see them doing it!:) … but seriously, there may be low quality apps doing the wrong thing - and there may be low quality websites that could also do the wrong thing).  

If we don’t feel we can trust developers to do the right thing with this information (even if it’s just navigator.connectionType = “wifi” or “cellular"), then I think it’s ok to discontinue this work. Then we can just leave it to browsers and OSs to try to do the right thing (e.g., through the video/audio and other media related tags).   

I’m hopeful that we can expose something - but maybe it’s too early to standardize this stuff in the form of an API. Or maybe there is just too much potential for people to do the wrong thing.     
Received on Wednesday, 11 December 2013 09:40:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:01:22 UTC