addSiteTask waits for site to be loaded before calling hooks