fix(affix): Better way to delay function call after the DOM is built.