Add resize event callback and option to set throttle