{"action":"created","issue":{"url":"https://api.github.com/repos/eisbehr-/jquery.lazy/issues/70","repository_url":"https://api.github.com/repos/eisbehr-/jquery.lazy","labels_url":"https://api.github.com/repos/eisbehr-/jquery.lazy/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/eisbehr-/jquery.lazy/issues/70/comments","events_url":"https://api.github.com/repos/eisbehr-/jquery.lazy/issues/70/events","html_url":"https://github.com/eisbehr-/jquery.lazy/issues/70","id":194612316,"number":70,"title":"Images loading all at init","user":{"login":"vivoconunxino","id":6072490,"avatar_url":"https://avatars.githubusercontent.com/u/6072490?v=3","gravatar_id":"","url":"https://api.github.com/users/vivoconunxino","html_url":"https://github.com/vivoconunxino","followers_url":"https://api.github.com/users/vivoconunxino/followers","following_url":"https://api.github.com/users/vivoconunxino/following{/other_user}","gists_url":"https://api.github.com/users/vivoconunxino/gists{/gist_id}","starred_url":"https://api.github.com/users/vivoconunxino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivoconunxino/subscriptions","organizations_url":"https://api.github.com/users/vivoconunxino/orgs","repos_url":"https://api.github.com/users/vivoconunxino/repos","events_url":"https://api.github.com/users/vivoconunxino/events{/privacy}","received_events_url":"https://api.github.com/users/vivoconunxino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-09T14:42:20Z","updated_at":"2016-12-12T09:22:57Z","closed_at":"2016-12-12T09:22:57Z","body":"Does this exact script run in your localhost? It's not working properly on mine\r\n\r\n```\r\n\r\n<html>\r\n    <head>\r\n        <script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.js\"></script>\r\n        <script type=\"text/javascript\" src=\"//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.4/jquery.lazy.min.js\"></script>\r\n\r\n        <style>\r\n            img.lazy {\r\n                width: 700px;\r\n                height: 467px;\r\n                display: block;\r\n            }\r\n        </style>\r\n    </head>\r\n\r\n    <body>\r\n\r\n        <script type=\"text/javascript\" charset=\"utf-8\">\r\n            $(function() {\r\n                var loadedElements = 0;\r\n                $('img.lazy').lazy({\r\n                        scrollDirection: 'vertical',\r\n                        effect: 'fadeIn',\r\n                        visibleOnly: true,\r\n                        onError: function(element) {\r\n                            console.log('error loading ' + element.data('src'));\r\n                        },\r\n                        beforeLoad: function(element) {\r\n                            console.log('image \"' + element.data('src') + '\" is about to be loaded');\r\n                        },\r\n                        afterLoad: function(element) {\r\n                            loadedElements++;\r\n                            console.log('image \"' + element.data('src') + '\" was loaded successfully');\r\n                        },\r\n                        onFinishedAll: function() {\r\n                            console.log('finished loading ' + loadedElements + ' elements');\r\n                            console.log('lazy instance is about to be destroyed')\r\n                        }\r\n                });\r\n            });   \r\n        </script>\r\n\r\n\r\n        <br /><br /><br /><br /><br /><br /><br /><br /><br />\r\n        <br /><br /><br /><br /><br /><br /><br /><br /><br />\r\n        <br /><br /><br /><br /><br /><br /><br /><br /><br />\r\n        <br /><br /><br /><br /><br /><br /><br /><br /><br />\r\n        <br /><br /><br /><br /><br /><br /><br /><br /><br />\r\n\r\n        <h1>Images</h1>\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/0.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/1.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/2.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/3.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/4.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/5.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/6.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/7.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/8.jpg\" src=\"\" />\r\n        <img class=\"lazy\" height=\"490\" data-src=\"http://jquery.eisbehr.de/lazy/images/9.jpg\" src=\"\" />\r\n    </body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/eisbehr-/jquery.lazy/issues/comments/266379685","html_url":"https://github.com/eisbehr-/jquery.lazy/issues/70#issuecomment-266379685","issue_url":"https://api.github.com/repos/eisbehr-/jquery.lazy/issues/70","id":266379685,"user":{"login":"eisbehr-","id":917005,"avatar_url":"https://avatars.githubusercontent.com/u/917005?v=3","gravatar_id":"","url":"https://api.github.com/users/eisbehr-","html_url":"https://github.com/eisbehr-","followers_url":"https://api.github.com/users/eisbehr-/followers","following_url":"https://api.github.com/users/eisbehr-/following{/other_user}","gists_url":"https://api.github.com/users/eisbehr-/gists{/gist_id}","starred_url":"https://api.github.com/users/eisbehr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eisbehr-/subscriptions","organizations_url":"https://api.github.com/users/eisbehr-/orgs","repos_url":"https://api.github.com/users/eisbehr-/repos","events_url":"https://api.github.com/users/eisbehr-/events{/privacy}","received_events_url":"https://api.github.com/users/eisbehr-/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T09:22:57Z","updated_at":"2016-12-12T09:22:57Z","body":"Yes, there is a problem with your document, and yes, it's not working for me too. But this is only because your html document is invalid. You missed to add the `doctype` to the content. When you adding this everything workes fine ...\r\n\r\n```HTML\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    ...\r\n```"}}
{"actor":{"display_login":"eisbehr-"}}