anticipate

To expect something and get ready for it beforehand.