Clearer way to wait for publication to load.