Polyfill to make it easy to listen for element resize events