I am having an issue with window.outerHeight.
It returns 0 when run on the Safari browser on mobile. I have tested it on Android (Chrome) and it works fine.
I am on iOS9.
I want to know if there is a solution or an alternative that is supported on older devices.
It is not a timing issue.
Open the following on your iPhone: http://jsfiddle.net/hfq0Ly1w/
alert(window.outerHeight);
You can see there are a lot of bugs on Safari by checking the height properties on your phone here:
http://ryanve.com/lab/dimensions/
Cheers!