Without the delay highlightPermalinkComment is being called before the comments are rendered. <code>defer</code> only prevents that sometimes. Is there another nice solution?