Webkit: be notified when document.body.scrollHeight changes
Is there a way to be notified w开发者_StackOverflow中文版hen document.body.scrollHeight changes ? I know that I could set an interval to check it every 100ms but i'am looking for a cleaner solution. I'm targetting mobile webkit browsers only. So I don't care about other browsers.
Um, yes, onresize (for the window, but still..) unless there is more than meets the eye to your question? There are problems on iPhone though, but onscroll seems to fire instead.
精彩评论