I think in general it should make a difference if we waited for `pagesPromise`. But if it seems to work fine, let's go with the `pagesPromise` solution since it's cleaner. We can optimize later if necessary.