In short, smart people in the HTML5 Boilerplate have already solved the problem in their mobile version .
MBP.hideUrlBarOnLoad in helper.js , which hides the address bar and does not hide the smart application banner. It seems like the key difference is probably MBP.getScrollTop , which gets a more intelligent scroll point than just scrolling to 1.
source share