I have a problem with the wrong height using
$(window).height();
and got a similar question here
In my case, when I try
$(document).height();
seems to return me the correct result
window height returns 320
while the height of the document returns 3552!
I found this question
But in my case the window is already loading completely, as I call the height function after several ajax operations
So what is the best way to know the height of the current window?
Edit:


jquery
Pawan Nogariya Dec 26 2018-12-12T00: 00Z
source share