Created
August 27, 2012 14:53
-
-
Save simenbrekken/3489205 to your computer and use it in GitHub Desktop.
Hide iOS address bar on ready and ajax load.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var hideAddressBar = function() { | |
| _.defer(window.scrollTo, 0, 0); | |
| }; | |
| $(document).ready(hideAddressBar).on('ajaxComplete', hideAddressBar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment