add a delay so that we won't keep triggering cb when resize
Merge pull request #65 from EragonJ/enhancement/use-timer-to-resize

add a delay so that we won't keep triggering cb when resize