This is in the Browser Automation Guide, I recommend you read all the interface specific guides (browser/mainframe/java/accessibility/uia/send keys/etc) as they have fundamental hints and tips that all developers should know.
In a wait stage there is a Parent Document Loaded option when waiting for an element. This does exactly what you want, it first waits to find an element in the browser and then it continues to wait until the page is fully loaded.