{"action":"created","issue":{"url":"https://api.github.com/repos/imulus/retinajs/issues/249","repository_url":"https://api.github.com/repos/imulus/retinajs","labels_url":"https://api.github.com/repos/imulus/retinajs/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/imulus/retinajs/issues/249/comments","events_url":"https://api.github.com/repos/imulus/retinajs/issues/249/events","html_url":"https://github.com/imulus/retinajs/issues/249","id":161666534,"number":249,"title":"Not possible to apply retinajs() to new images","user":{"login":"IlyaSemenov","id":128121,"avatar_url":"https://avatars.githubusercontent.com/u/128121?v=3","gravatar_id":"","url":"https://api.github.com/users/IlyaSemenov","html_url":"https://github.com/IlyaSemenov","followers_url":"https://api.github.com/users/IlyaSemenov/followers","following_url":"https://api.github.com/users/IlyaSemenov/following{/other_user}","gists_url":"https://api.github.com/users/IlyaSemenov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlyaSemenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlyaSemenov/subscriptions","organizations_url":"https://api.github.com/users/IlyaSemenov/orgs","repos_url":"https://api.github.com/users/IlyaSemenov/repos","events_url":"https://api.github.com/users/IlyaSemenov/events{/privacy}","received_events_url":"https://api.github.com/users/IlyaSemenov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-22T12:17:20Z","updated_at":"2016-06-30T16:05:05Z","closed_at":null,"body":"It is not possible to cleanly apply `retinajs()` to new images (that have been dynamically inserted with javascript after `window.load`).\r\n\r\nThe module only exports a single function `retinajs()` without any parameter, which iterates over **all** images and tries to fetch the `@2x` image. For images that have been already processed by previous `rethinkjs()` call, it dumbly tries `@2x@2x` images.\r\n\r\nIt's either that `rethinkjs()` must mark previously processes images and ignore them on future runs, and/or accept optional parameter `images` (which could be element, NodeList or array of image elements to process)."},"comment":{"url":"https://api.github.com/repos/imulus/retinajs/issues/comments/229706132","html_url":"https://github.com/imulus/retinajs/issues/249#issuecomment-229706132","issue_url":"https://api.github.com/repos/imulus/retinajs/issues/249","id":229706132,"user":{"login":"jgnewman","id":856964,"avatar_url":"https://avatars.githubusercontent.com/u/856964?v=3","gravatar_id":"","url":"https://api.github.com/users/jgnewman","html_url":"https://github.com/jgnewman","followers_url":"https://api.github.com/users/jgnewman/followers","following_url":"https://api.github.com/users/jgnewman/following{/other_user}","gists_url":"https://api.github.com/users/jgnewman/gists{/gist_id}","starred_url":"https://api.github.com/users/jgnewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgnewman/subscriptions","organizations_url":"https://api.github.com/users/jgnewman/orgs","repos_url":"https://api.github.com/users/jgnewman/repos","events_url":"https://api.github.com/users/jgnewman/events{/privacy}","received_events_url":"https://api.github.com/users/jgnewman/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T16:05:05Z","updated_at":"2016-06-30T16:05:05Z","body":"Ah, great catch! We'll fix this one."}}
{"actor":{"display_login":"jgnewman"}}