{"action":"opened","issue":{"url":"https://api.github.com/repos/oneuijs/You-Dont-Need-jQuery/issues/92","repository_url":"https://api.github.com/repos/oneuijs/You-Dont-Need-jQuery","labels_url":"https://api.github.com/repos/oneuijs/You-Dont-Need-jQuery/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/oneuijs/You-Dont-Need-jQuery/issues/92/comments","events_url":"https://api.github.com/repos/oneuijs/You-Dont-Need-jQuery/issues/92/events","html_url":"https://github.com/oneuijs/You-Dont-Need-jQuery/issues/92","id":140227380,"number":92,"title":"$(document).ready","user":{"login":"dillon9693","id":5503742,"avatar_url":"https://avatars.githubusercontent.com/u/5503742?v=3","gravatar_id":"","url":"https://api.github.com/users/dillon9693","html_url":"https://github.com/dillon9693","followers_url":"https://api.github.com/users/dillon9693/followers","following_url":"https://api.github.com/users/dillon9693/following{/other_user}","gists_url":"https://api.github.com/users/dillon9693/gists{/gist_id}","starred_url":"https://api.github.com/users/dillon9693/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dillon9693/subscriptions","organizations_url":"https://api.github.com/users/dillon9693/orgs","repos_url":"https://api.github.com/users/dillon9693/repos","events_url":"https://api.github.com/users/dillon9693/events{/privacy}","received_events_url":"https://api.github.com/users/dillon9693/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T16:23:26Z","updated_at":"2016-03-11T16:23:26Z","closed_at":null,"body":"Not really an issue, more of an addition or \"feature request\", but... \r\n\r\n`$(document).ready(function(){...}); ` \r\n\r\ncan be replaced by \r\n\r\n`document.addEventListener(\"DOMContentLoaded\", function(event) {...});`\r\n\r\nThis is useful for making sure a DOM node is loaded before trying to access its elements or assign event listeners to it, etc."}}