BloombergGraphics / whatiscode

Paul Ford’s “What Is Code?”
http://www.bloomberg.com/whatiscode
Apache License 2.0
3.67k stars 262 forks source link

improvements for reading speed calculation #108

Open joernhees opened 9 years ago

joernhees commented 9 years ago

The reading speed calculation is a nice gimmick, but as you write in the popup yourself, it's pretty inaccurate if the user leaves the tab open...

I've done some similar measurements and you could easily improve them with activity tracking like this and visibility detection like this.

thanks for the cool article ;)

ysmartin commented 9 years ago

+1 On the one hand, if you leave the tab open to keep reading later (not unusual), it misestimates the reading speed by computing the whole time interval since you first opened the page. On the other hand, if you leave and close the page but return to it later in time, or if you just reload it, it starts complaining that you are reading so fast that you can only be skimming through the page contents. By the way, more akwardly, both bugs can coexist at the same time.