Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$(window).height() and Mobile Safari #71

Closed
KaptajnKold opened this issue Nov 20, 2012 · 1 comment
Closed

$(window).height() and Mobile Safari #71

KaptajnKold opened this issue Nov 20, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@KaptajnKold
Copy link

Basically $(window).height() doesn't work correctly on Mobile Safari. On an iPhone 5 it always returns 444 which is only true when the (entire) address bar is visible. If the address bar is scrolled out of sight it should return 504, but still it return only 444.

What this means is that I have to set a threshold of 60 which is the height of the address bar, if I want images to start load a soon as the appear above the fold.

A solution would be to use window.innerHeight instead of $(window).height(), as this will give the correct value in all cases.

@ghost ghost assigned tuupola Nov 21, 2012
@tuupola
Copy link
Owner

tuupola commented Nov 21, 2012

Fixed in 1.9.x. Thanks for the heads up!

@tuupola tuupola closed this as completed Nov 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants