{"action":"created","issue":{"url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/237","labels_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/237/comments","events_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/237/events","html_url":"https://github.com/tuupola/jquery_lazyload/issues/237","id":53736174,"number":237,"title":"failure_limit ??","user":{"login":"paper","id":293908,"avatar_url":"https://avatars.githubusercontent.com/u/293908?v=3","gravatar_id":"","url":"https://api.github.com/users/paper","html_url":"https://github.com/paper","followers_url":"https://api.github.com/users/paper/followers","following_url":"https://api.github.com/users/paper/following{/other_user}","gists_url":"https://api.github.com/users/paper/gists{/gist_id}","starred_url":"https://api.github.com/users/paper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paper/subscriptions","organizations_url":"https://api.github.com/users/paper/orgs","repos_url":"https://api.github.com/users/paper/repos","events_url":"https://api.github.com/users/paper/events{/privacy}","received_events_url":"https://api.github.com/users/paper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-08T10:35:12Z","updated_at":"2015-01-08T12:07:59Z","closed_at":"2015-01-08T12:07:59Z","body":"Hi~\r\n\r\ncode(Version:  1.9.3):\r\nhttps://github.com/tuupola/jquery_lazyload/blob/master/jquery.lazyload.js#L53\r\nhttps://github.com/tuupola/jquery_lazyload/commit/985be23e24a198b2a3048639eb9c9ace6b5f77ed\r\n\r\n[Demo]\r\nfaile       :  https://paper.github.io/lab/lazyload-test/faile/lazyload-test.html\r\nsuccess : https://paper.github.io/lab/lazyload-test/success/lazyload-test.html\r\n  \r\n[English]\r\nmy english is not good , I try my best to express my meaning\r\n\r\nbecause  failure_limit = 0\r\nso, if one image  below the fold , then ``` return false; ```, break the ```each```.\r\nbut, other images possible appear in fold and should ```trigger(\"appear\");```\r\nAlthough I can set ```failure_limit``` , but it is hard. \r\nbecause the page height often change or every page have different needs\r\n\r\n---\r\n\r\n[Chinese]\r\n默认 failure_limit 为 0\r\n也就是说，当elements循环时，一发现有图片在可视区域下面（假设其中一个叫A），++counter 大于 0，return false; each 循环停止 。\r\n这会导致有些图片虽然在可视区域，但DOM节点处在A下面，就不会加载了。\r\n\r\n虽然可以设置 failure_limit 的数量，但是每个页面的需求不同，而且页面的高度可以随时变化，这个值是很难设置，所以意义不大\r\n                        \r\n希望 去掉这个属性，或者 return true; 或 do Nothing.\r\n"},"comment":{"url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/comments/69171168","html_url":"https://github.com/tuupola/jquery_lazyload/issues/237#issuecomment-69171168","issue_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/237","id":69171168,"user":{"login":"tuupola","id":21913,"avatar_url":"https://avatars.githubusercontent.com/u/21913?v=3","gravatar_id":"","url":"https://api.github.com/users/tuupola","html_url":"https://github.com/tuupola","followers_url":"https://api.github.com/users/tuupola/followers","following_url":"https://api.github.com/users/tuupola/following{/other_user}","gists_url":"https://api.github.com/users/tuupola/gists{/gist_id}","starred_url":"https://api.github.com/users/tuupola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuupola/subscriptions","organizations_url":"https://api.github.com/users/tuupola/orgs","repos_url":"https://api.github.com/users/tuupola/repos","events_url":"https://api.github.com/users/tuupola/events{/privacy}","received_events_url":"https://api.github.com/users/tuupola/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T12:07:59Z","updated_at":"2015-01-08T12:07:59Z","body":"If you do not want to use the proper solution as suggested then as a workaround use huge failure_limit number.\r\n\r\n```\r\n$(\"img.lazy\").lazyload({\r\n    failure_limit  :  99999999999\r\n});\r\n```"}}