I had the good fortune to work from India for a week to do a presentation about Performance and run two codelabs with leading developers in Bangalore and across Inida. I also met up with many companies who are doing interesting things on the web and on native. I learnt a lot about the state of the web from some of the companies in this market and I intend this to be a little series of anecdotes that I heard from developers.
As with all anecdotes, these were taken from a relatively small number of developers but who had data to back it up. These will need more research to see if they are pervasive (I think they are) and I am looking for feedback.
2G is still massive, I naively thought that 3G is the solution, however I quickly learnt there are two types of 3G:
- Working 3G
- Over-subscribed 3G cell towers which are slower than 2G.
Many of the developers I spoke to know that 2G is massive for them, but they have no way of knowing what type of network that the user is on. My first thought was that the NetInfor API will help, but there are several serious issues that make it not a viable solution:
- The NetInfo API only reports 'cellular', 'wifi', 'wired' as the connection information. Not the actually type of network state the Radio is currently in. Which is useless for this usecase.
- The NetInfo API is clientside only and is not available on first request to a page when a developer is likely to need it.
Interestingly, UC Mini reports interesting information on page request via the User Agent string. Network connection type is one of those values (i.e, WAP, Cell etc.)
Many of the developers I spoke with are investigating Twin Prime because they can optimize for the 'last mile' and change the responses to network request based on network type and quality, for example they might suggest to only send 3 search results instead of 5 or 10. We don't seem to have this on the web.
I also learnt that Facebook have an API for native apps that assesses the quality of the Network Connection that looks at latency, downstream bandwidth and then gives you information so that you can decide how to optimize the experience for users (i.e, show fewer or display lower quality images).
I feel more strongly than ever that we need to be able to send the network quality or type on the HTTP request header
so that developers can optimize acordingly and also in the browser. One area that I think we can get some data
is to use the
window.performance API in the browser to estimate bandwidth and latency of already loaded pages.
About Me: Paul Kinlan
I lead the Chrome Developer Relations team at Google.
We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.
Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.