The question I had is answered by this line of code: xhr.setRequestHeader("Range", "bytes=" + from + "-" + to); I am a little surprised you can just do that. In https://github.com/phiresky/sql.js-httpvfs/blob/master/src/l...
It's an embedded genome viewer, you can just point it at a multigigabyte reference files and .seg files and it loads super quick