{"action":"created","issue":{"url":"https://api.github.com/repos/barretlee/lazyload/issues/7","repository_url":"https://api.github.com/repos/barretlee/lazyload","labels_url":"https://api.github.com/repos/barretlee/lazyload/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/barretlee/lazyload/issues/7/comments","events_url":"https://api.github.com/repos/barretlee/lazyload/issues/7/events","html_url":"https://github.com/barretlee/lazyload/issues/7","id":142045437,"number":7,"title":"觉得图片是否加载的判断点应该在图片本身而不是容器","user":{"login":"tyrion-yu","id":12961132,"avatar_url":"https://avatars.githubusercontent.com/u/12961132?v=3","gravatar_id":"","url":"https://api.github.com/users/tyrion-yu","html_url":"https://github.com/tyrion-yu","followers_url":"https://api.github.com/users/tyrion-yu/followers","following_url":"https://api.github.com/users/tyrion-yu/following{/other_user}","gists_url":"https://api.github.com/users/tyrion-yu/gists{/gist_id}","starred_url":"https://api.github.com/users/tyrion-yu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyrion-yu/subscriptions","organizations_url":"https://api.github.com/users/tyrion-yu/orgs","repos_url":"https://api.github.com/users/tyrion-yu/repos","events_url":"https://api.github.com/users/tyrion-yu/events{/privacy}","received_events_url":"https://api.github.com/users/tyrion-yu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-19T09:15:30Z","updated_at":"2016-03-19T10:08:15Z","closed_at":null,"body":"目前是容器进入区域，就一股脑的把里面的图片全去加载了。\r\n比如手机上，无限加载的列表页，每次ajax得到16~32个图片地址，插入进ul列表，所有图片会同时去加载，没得到想要的效果。\r\n\r\napi应该是传入图片的容器，但是应该判断容器里的每个图片是否进入可视区。"},"comment":{"url":"https://api.github.com/repos/barretlee/lazyload/issues/comments/198679018","html_url":"https://github.com/barretlee/lazyload/issues/7#issuecomment-198679018","issue_url":"https://api.github.com/repos/barretlee/lazyload/issues/7","id":198679018,"user":{"login":"barretlee","id":2698003,"avatar_url":"https://avatars.githubusercontent.com/u/2698003?v=3","gravatar_id":"","url":"https://api.github.com/users/barretlee","html_url":"https://github.com/barretlee","followers_url":"https://api.github.com/users/barretlee/followers","following_url":"https://api.github.com/users/barretlee/following{/other_user}","gists_url":"https://api.github.com/users/barretlee/gists{/gist_id}","starred_url":"https://api.github.com/users/barretlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barretlee/subscriptions","organizations_url":"https://api.github.com/users/barretlee/orgs","repos_url":"https://api.github.com/users/barretlee/repos","events_url":"https://api.github.com/users/barretlee/events{/privacy}","received_events_url":"https://api.github.com/users/barretlee/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T10:08:15Z","updated_at":"2016-03-19T10:08:15Z","body":"应该还要添加一个 add 函数，将动态加入的元素添加到检测队列中。"}}