{"action":"created","issue":{"url":"https://api.github.com/repos/metafizzy/flickity/issues/172","repository_url":"https://api.github.com/repos/metafizzy/flickity","labels_url":"https://api.github.com/repos/metafizzy/flickity/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/metafizzy/flickity/issues/172/comments","events_url":"https://api.github.com/repos/metafizzy/flickity/issues/172/events","html_url":"https://github.com/metafizzy/flickity/issues/172","id":91059717,"number":172,"title":"lazyLoad srcset or <picture>","user":{"login":"solemone","id":2318454,"avatar_url":"https://avatars.githubusercontent.com/u/2318454?v=3","gravatar_id":"","url":"https://api.github.com/users/solemone","html_url":"https://github.com/solemone","followers_url":"https://api.github.com/users/solemone/followers","following_url":"https://api.github.com/users/solemone/following{/other_user}","gists_url":"https://api.github.com/users/solemone/gists{/gist_id}","starred_url":"https://api.github.com/users/solemone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solemone/subscriptions","organizations_url":"https://api.github.com/users/solemone/orgs","repos_url":"https://api.github.com/users/solemone/repos","events_url":"https://api.github.com/users/solemone/events{/privacy}","received_events_url":"https://api.github.com/users/solemone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/metafizzy/flickity/labels/feature%20request","name":"feature request","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-06-25T19:54:46Z","updated_at":"2016-02-25T18:19:50Z","closed_at":null,"body":"It would be great if there is an option to fill the \"srcset\" attribute instead of the \"src\" attribute for responsive lazy load images. Or both with a new data attribute for the srcset image array."},"comment":{"url":"https://api.github.com/repos/metafizzy/flickity/issues/comments/188917126","html_url":"https://github.com/metafizzy/flickity/issues/172#issuecomment-188917126","issue_url":"https://api.github.com/repos/metafizzy/flickity/issues/172","id":188917126,"user":{"login":"oskarrough","id":184567,"avatar_url":"https://avatars.githubusercontent.com/u/184567?v=3","gravatar_id":"","url":"https://api.github.com/users/oskarrough","html_url":"https://github.com/oskarrough","followers_url":"https://api.github.com/users/oskarrough/followers","following_url":"https://api.github.com/users/oskarrough/following{/other_user}","gists_url":"https://api.github.com/users/oskarrough/gists{/gist_id}","starred_url":"https://api.github.com/users/oskarrough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oskarrough/subscriptions","organizations_url":"https://api.github.com/users/oskarrough/orgs","repos_url":"https://api.github.com/users/oskarrough/repos","events_url":"https://api.github.com/users/oskarrough/events{/privacy}","received_events_url":"https://api.github.com/users/oskarrough/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T18:19:50Z","updated_at":"2016-02-25T18:19:50Z","body":"@downFast while this is not related to Flickity, what you're looking for is [currentSrc](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentSrc). Something like this:\r\n\r\n```\r\n$(\".gallery-cell\").on(\"click\", function(e){\r\n   e.preventDefault();\r\n   var src = $(this).find('img').get(0).currentSrc; // get DOM element's currentSrc\r\n   imgWindow = window.open(src, 'imgWindow');\r\n});\r\n```"}}