fixed caption position resize being called when document isn't ready