The update function firing continuously on resizing?

Hi,

I added a resize timer to avoid  calling the update function continuously on resizing.