Wait for pageloads before proceeding.