{"action":"closed","issue":{"url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/241","labels_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/241/comments","events_url":"https://api.github.com/repos/tuupola/jquery_lazyload/issues/241/events","html_url":"https://github.com/tuupola/jquery_lazyload/issues/241","id":55264584,"number":241,"title":"Images not loaded initially - Fix proposal","user":{"login":"daverupp","id":942990,"avatar_url":"https://avatars.githubusercontent.com/u/942990?v=3","gravatar_id":"","url":"https://api.github.com/users/daverupp","html_url":"https://github.com/daverupp","followers_url":"https://api.github.com/users/daverupp/followers","following_url":"https://api.github.com/users/daverupp/following{/other_user}","gists_url":"https://api.github.com/users/daverupp/gists{/gist_id}","starred_url":"https://api.github.com/users/daverupp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daverupp/subscriptions","organizations_url":"https://api.github.com/users/daverupp/orgs","repos_url":"https://api.github.com/users/daverupp/repos","events_url":"https://api.github.com/users/daverupp/events{/privacy}","received_events_url":"https://api.github.com/users/daverupp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-23T10:07:08Z","updated_at":"2015-04-02T11:17:48Z","closed_at":"2015-04-02T11:17:48Z","body":"Hey all\r\nWhen I load images the first time, they are not loaded via the lazyload plugin. Only when I scroll a little bit, then it is working without problems.\r\n\r\nI checked the plugin and changed this line in the update method:\r\n\r\nif (settings.skip_invisible && $this.css('display') === 'none') {\r\n//if (settings.skip_invisible && !$this.is(\":visible\")) {\r\n\r\nIt seems, that it is a problem with jquery's .is(':visible') method. So after the small change, it is working properly.\r\n\r\nI hope this helps.\r\nKind regards\r\nDave"}}