And I'm using the $(window).height() for some calculations. When I run the website in safari it works fine, but chrome does something strange. $(window).height() only gives the height between the bottom of the screen and the bar at the top. If you scroll down you can see more of the page, but this is just blank.

Is there a way to include this little bit of height to $(window).height() without harming the rest of the site?

1 Answer
1

The window is defined as the browser's "viewport". That is only the elements that are currently visible in the browser. Everything off screen is not included in $(window).height(). Without seeing your page, it is possible that the two browsers have slightly different viewports, and Safari fits everything in the viewport and Chrome does not.

Use $(document).height() if you want the height of the entire page, including what is off-screen.