How to fix the resize event in IE

In IE the window resize event is fired multiple times per actual resize: it is a well known issue for IE6 and IE7, but they misbehave along different patterns. Actually it seems that IE6 is worse than IE7.

After quite a long session of R&D, I’ve got to a pretty good solution, in the form of a jQuery plugin: jquery.wresize.js

{[.script | 1.hilite(=javascript=)]}

If you want to try it, here is a test page, where a div is automatically resized when the window is resized.

{[.testpage | 1.hilite(=html=)]}