All the answers on SO for fetching the device's height seem based on jQuery. We need something in pure JavaScript before the jQuery code loads.
document.documentElement.clientHeight
There are a number of other methods, too: http://responsejs.com/labs/dimensions/
May be a little late, but use window.screen.height
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With