Ensure references are unique and give the html a little time to render.