tuupola/jquery_lazyload — pull request #42 by joseprio (2012-07-16 20:24:41+00:00)
Title: Reset failure counter when a valid target has been found

I was experiencing some problems with lazyload and my website, and I found out that lazyload works by processing the images as they're found in the document.

The "failure_limit" option was the obvious solution, but to really fix it in my particular layout it would require a large number; the page consists of 5 vertical columns with 4 images each, so I thought that by just resetting the counter, the number of images per column, it would fix the problem and be optimal when no images need to revealed.

I believe that my solution makes sense and may help other users of lazyload, so I hope you consider merging it in the main branch.