Ready for a terrible idea?
Is there gem/library/etc that monitors how long each request in a session takes in order to optimize the site behavior for observed client performance?
For example - let’s say I’m sitting in my car waiting for my son. I have 10 minutes to kill so I pull out my phone. I browse twitter and find an article that sounds interesting. I click the link. I wait … and then in about 45 seconds the site finally pops up. When it finally renders I am presented with about 1/10th of the article and a next button. So now I read for 45 seconds and have to hit “next” … waiting another 45 seconds.
I spent half of my time waiting. Frustrated. Disappointed.
The site was optimized for mobile. It had a responsive design that rendered nicely and was easy to read. That wasn’t the problem.
The problem was that I was on a highly latent 2G connection.
What if they had known that?
Perhaps they could have delivered twice as much of the article text at a time (to reduce round-trips) and none of the images (or smaller images I could click on to see a more detailed version). Images. Fonts. Content. Layout. Behaviors. All of them could be adjusted.
Netflix knows. They adjust video quality based on current performance.
Why don’t content-heavy websites do this?
I made a little app to do the first request tracking here: http://188.8.131.52:3000/.
Do me a solid and click on the link?
Oh, and not that it is really interesting, but the code is here.