fix(affix): initialize only after first content is loaded and window is ready.