Wait for url loaded

Merge this into the centro_production branch.