I have implemented Infinite scrolling(i.e Load records when the scrollbar reaches the bottom of the div). It works fine but after loading too many records on the page, the page
If you have any type of iteration over a collection of DOM elements and you don't use jQuery to iterate, use this (suggestions by JavaScript patterns):
for (var iteration = 0, limit = lengthOfElements; iteration++; iteration < limit)
or
for (var i = myarray.length; i--; )