Could we use `Promise.all()` (https://github.com/mozilla/pdf.js/blob/master/src/util.js#L655-Lundefined) to resolve `destinationsPromise` and `pagesPromise` together to remove unnecessary nesting.