Major (and simple) browser compatibility fix for IE when background image is cached.
As per http://www.thefutureoftheweb.com/blog/image-onload-isnt-being-called, setting 'src' attribute on a cached image in IE will instantly fire 'load' event. Thus, as we currently set the 'src' prior to 'bind', we will cause an event handler to be setup after the event (load) has already been triggered. This causes a complete breakdown of ezBgResize on IE8 (and likely other versions / browsers). Simply setting the binding prior to the source fixes this issue.
Major (and simple) browser compatibility fix for IE when background image is cached.
As per http://www.thefutureoftheweb.com/blog/image-onload-isnt-being-called, setting 'src' attribute on a cached image in IE will instantly fire 'load' event. Thus, as we currently set the 'src' prior to 'bind', we will cause an event handler to be setup after the event (load) has already been triggered. This causes a complete breakdown of ezBgResize on IE8 (and likely other versions / browsers). Simply setting the binding prior to the source fixes this issue.