Slide 26
Slide 26 text
$(window).on(‘scroll’) or window.setTimeout() or $
(window).on(‘scroll’, _.debounce(function..
and then
window.history.pushState() or replaceState() and listen for
window.onpopstate but you might want to store something in
localStorage
and then get HTML from the server but you’ll need innerShiv
but that’s deprecated now so just use html5shiv.js
or maybe the server returns JSON and you can put it in a
Handlebars.js template and appendChild
it’s starting to get really slow now and I think there’s a
memory leak?
Oh look, Paul Irish made something called
jquery.infinitescroll.js I wonder if that’s any good...