The two canonical wait scenarios: an element hidden until it's ready, and one absent from the DOM until it's ready.
This interactive playground needs JavaScript enabled to render the challenges.