Update loading bar during onprogress of range requests

Fixes @jviereck issue in #3118.