I\'m trying to get the current browser viewport height, using
$(window).on(\'resize\',function() { console.log(\"new height is: \"+$(window).height());
I have seen jQuery's $(window).height() returning a wrong value on Chrome mobile, even though my viewport and DOCTYPE declarations were in place. Eventually I used window.innerHeight.
$(window).height()
viewport
DOCTYPE
window.innerHeight