Move resize code to fire after XHR.