Automatically load content on scroll

Simple code snippet to load content on scroll, as Twitter does.

var loading = false;
		if(loading == false){
			loading = true;
			$.get("load.php?start="+$('#loaded_max').val(), function(loaded){
				loading = false;

$(document).ready(function() {


Share this snippet


Leave a Reply

Your email address will not be published. Required fields are marked *

Please respect the following rules: No advertising, no spam, no keyword in name field. Thank you!