I have some Javascript code where I need the dimensions of my window, therefore I've used the classic jQuery $(window).height()
This works perfectly on one version of my website, but returns a wrong value (lower than normal) on another. I tested by displaying both in two tabs of the same browser, and I get two different values.
Codewise, I can't figure out the difference between both versions that may cause the problem, so I'm just looking for clues about what could possibly be wrong or how to debug.
I'm aware similar topics have already been discussed on Stack Overflow, but I haven't found a relevant answer. You should know that:
- I do have
<!doctype html>
at the top of my DOM in both versions - The problem occurs at least on Chrome and Firefox