![]() ![]() ![]() ResizeId = setTimeout (doneResizing, 500 ) īasically what we do in this case is adding a timeout of 500 milliseconds to call our function doneResizing. For those cases we don't usually want to execute them tens of times while the user is still re-sizing the window to reach the desired size.įor these particular cases we can use a very simple trick: var resizeId Sometimes we need to execute functions which might take a while to execute or which might consume quite a few resources from the machine. JQuery resize event (or Javascript one) is fired when the size of the browser's window (viewport) changes as pointed out in jQuery documentation. ![]()
0 Comments
Leave a Reply. |