I have run into issues recently with the browsers’ implementation of the resize event on the window. Opera, Safari, IE and Firefox all have different behaviors when this event is fired.
- Firefox only fires it when you release the mouse.
- IE fires this event many many times while resizing.
- Safari will fire continusouly while dragging
- Opera fires after the resizing stopped
You can read more about this here.
These differences led me to search for a solution. I quickly wrote this proof of concept function today which may help solve this problem. It is a JQuery add-on called resizeComplete. It works by checking periodically after a resize starts and checks if the size of the object has changed. Once no change is detected it invokes the call back method.
This has not been tested much at all but I think it might be on the right track.
Here is an example of its usage: