The current state of infinite-scroll.js from the default Casper theme is buggy. I’m going to improve the script and make it work.
Found out it’s my own fault for editing index.hbs file. I didn’t expect you need to add extra argument page to load correct offset from a list. Get Posts exclude tags
I made little bloat for factoryListener function. It’s an idea to have multiple listeners in a list to destroy later if you worry about memory management or element manipulation. Some best practises are when you create an addEventListner you must have removeEventListener too clean it up.
Subscribe to Harianto van Insulinde
Get the latest posts delivered right to your inbox
You've successfully subscribed to Harianto van Insulinde!
Subscribe to Harianto van Insulinde
Stay up to date! Get all the latest & greatest posts delivered straight to your inbox