I’ve been reading and trying to implement various forms of infinite scroll, whether it be in jquery, django, or some combo of both. I’m using the firebug extension in chrome to track the calls made when I scroll to the bottom of the page and request more data from my database. Whenever I hit the bottom of the page, firebug shows an additional request to grab more data.
Using firebug on twitter.com and facebook.com, I noticed that no additional requests show up in firebug when I use their infinite scrolls and scroll to the bottom of the page, even though more data is loaded. I imagine this is much better from a security standpoint. How do they do “hide” those additional requests?
The extra content isn’t hidden – in Facebook, when you approach the end of the page an ajax call is made to get the new content.
Looking at the resources in Chrome a call is made to this file to load the extra contents –
https://www.facebook.com/ajax/pagelet/generic.php/MoreStoriesPagelet