detect other references on the page at the right time.