pdfjs uses requestAnimationFrame to schedule the rendering, and this does not fire if the tab is inactive. That causes an unwanted error if switching tabs for more than the one minute timeout.