Sam152 / Javascript-Equal-Height-Responsive-Rows

A simple jQuery plugin to keep elements the same height, supporting resizing and responsive layouts.
183 stars 50 forks source link

Resize slow - can you make syncHeights() call once when resize stops? #32

Open ace-coder opened 8 years ago

ace-coder commented 8 years ago

When the window is resized using mouse dragging, the resize event fires many times and for each time the syncHeights() function is called and makes the page very slow if there are hundreds of items. So, When the user starts dragging to resize the window, resize event will not fired i.e. syncHeights() function should not be called until the user ends dragging. The syncHeights() function will be called once the drag ends and the window is resized to the final width.