Added option to do ajax post after the resize