{"action":"created","issue":{"url":"https://api.github.com/repos/vvo/lazyload/issues/70","labels_url":"https://api.github.com/repos/vvo/lazyload/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/vvo/lazyload/issues/70/comments","events_url":"https://api.github.com/repos/vvo/lazyload/issues/70/events","html_url":"https://github.com/vvo/lazyload/issues/70","id":90053480,"number":70,"title":"Onload attribute method","user":{"login":"nico3333fr","id":2578321,"avatar_url":"https://avatars.githubusercontent.com/u/2578321?v=3","gravatar_id":"","url":"https://api.github.com/users/nico3333fr","html_url":"https://github.com/nico3333fr","followers_url":"https://api.github.com/users/nico3333fr/followers","following_url":"https://api.github.com/users/nico3333fr/following{/other_user}","gists_url":"https://api.github.com/users/nico3333fr/gists{/gist_id}","starred_url":"https://api.github.com/users/nico3333fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nico3333fr/subscriptions","organizations_url":"https://api.github.com/users/nico3333fr/orgs","repos_url":"https://api.github.com/users/nico3333fr/repos","events_url":"https://api.github.com/users/nico3333fr/events{/privacy}","received_events_url":"https://api.github.com/users/nico3333fr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T09:32:25Z","updated_at":"2015-06-22T10:19:28Z","closed_at":null,"body":"Hello,\r\n\r\nI'm just wondering if there is a version of the script without setting up ``` onload=\"lzld(this)\" ``` in the HTML code ?\r\n\r\nAs I'm using CSP and trying to avoid inline js-attributes, would it be possible to set up a version with an data-attribute (for example) instead of onload ?\r\n\r\nThanks a lot for reading,\r\nNicolas"},"comment":{"url":"https://api.github.com/repos/vvo/lazyload/issues/comments/114058799","html_url":"https://github.com/vvo/lazyload/issues/70#issuecomment-114058799","issue_url":"https://api.github.com/repos/vvo/lazyload/issues/70","id":114058799,"user":{"login":"vvo","id":123822,"avatar_url":"https://avatars.githubusercontent.com/u/123822?v=3","gravatar_id":"","url":"https://api.github.com/users/vvo","html_url":"https://github.com/vvo","followers_url":"https://api.github.com/users/vvo/followers","following_url":"https://api.github.com/users/vvo/following{/other_user}","gists_url":"https://api.github.com/users/vvo/gists{/gist_id}","starred_url":"https://api.github.com/users/vvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvo/subscriptions","organizations_url":"https://api.github.com/users/vvo/orgs","repos_url":"https://api.github.com/users/vvo/repos","events_url":"https://api.github.com/users/vvo/events{/privacy}","received_events_url":"https://api.github.com/users/vvo/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T10:19:28Z","updated_at":"2015-06-22T10:19:28Z","body":"also see https://github.com/vvo/lazyload/issues/45"}}