Added a resize timer to prevent the update function from firing multiple
times when the window hasn't finished resizing