Try not to use jQuery's slow window.height and window.width methods when we do not have to.