{"action":"opened","issue":{"url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/387","repository_url":"https://api.github.com/repos/tuupola/jquery_lazyload","labels_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/387/comments","events_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/387/events","html_url":"https://github.com/tuupola/jquery_lazyload/issues/387","id":256867158,"number":387,"title":"Why isn't my simple code working?","user":{"login":"prateekvarma","id":9058135,"avatar_url":"https://avatars2.githubusercontent.com/u/9058135?v=4","gravatar_id":"","url":"https://api.github.com/users/prateekvarma","html_url":"https://github.com/prateekvarma","followers_url":"https://api.github.com/users/prateekvarma/followers","following_url":"https://api.github.com/users/prateekvarma/following{/other_user}","gists_url":"https://api.github.com/users/prateekvarma/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekvarma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekvarma/subscriptions","organizations_url":"https://api.github.com/users/prateekvarma/orgs","repos_url":"https://api.github.com/users/prateekvarma/repos","events_url":"https://api.github.com/users/prateekvarma/events{/privacy}","received_events_url":"https://api.github.com/users/prateekvarma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-11T23:01:32Z","updated_at":"2017-09-11T23:01:32Z","closed_at":null,"author_association":"NONE","body":"Below is a very basic example, and images load before i scroll onto them. What possibly am i doing wrong?\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n\t<title>Lazy loading</title>\r\n\t                \r\n</head>\r\n<body>\r\n\r\n<img class=\"lazyload\" data-src=\"img1.jpg\">\r\n\r\n<img class=\"lazyload\" data-src=\"img2.jpg\">\r\n\r\n<img class=\"lazyload\" data-src=\"img3.jpg\">\r\n\r\n<img class=\"lazyload\" data-src=\"img4.jpg\">\r\n\r\n<img class=\"lazyload\" data-src=\"img5.jpg\">\r\n\r\n<script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>\r\n<script src=\"https://cdn.jsdelivr.net/npm/lazyload@2.0.0-beta.1/lazyload.js\"></script>\r\n<script>\r\n\tlazyload();\r\n</script>\r\n</body>\r\n</html>\r\n```"}}
{"actor":{"display_login":"prateekvarma"}}