Wait until the page has been swapped to rerun