Don't wait arbitrary long for all pages to be resolved before attempting to re-apply the initial position on load (PR 6318 follow-up)
Don't wait arbitrary long for all pages to be resolved before attempting to re-apply the initial position on load (PR 6318 follow-up)

With the current code, the location in the viewer could change *well* after the user has started to interact with the viewer (for very large and/or slow loading documents). Attempt to reduce the likelyhood of that happening, by adding an upper bound to the time spent waiting before attempting to re-apply the initial position.

xavier114fch/pdf.js,mainegreen/pdf.js,Snuffleupagus/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,showpad/mozilla-pdf.js,showpad/mozilla-pdf.js,mainegreen/pdf.js,Shoobx/pdf.js,caremerge/pdf.js,Shoobx/pdf.js,xavier114fch/pdf.js,Snuffleupagus/pdf.js,mozilla/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,caremerge/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,mukulmishra18/pdf.js,nawawi/pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,Shoobx/pdf.js,macroplant/pdf.js,showpad/mozilla-pdf.js,macroplant/pdf.js,mukulmishra18/pdf.js,nawawi/pdf.js