{"action":"created","issue":{"url":"https://api.github.com/repos/bezumkin/mSearch2/issues/37","labels_url":"https://api.github.com/repos/bezumkin/mSearch2/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/bezumkin/mSearch2/issues/37/comments","events_url":"https://api.github.com/repos/bezumkin/mSearch2/issues/37/events","html_url":"https://github.com/bezumkin/mSearch2/issues/37","id":102537088,"number":37,"title":"Load JavaScript at the bottom of the page","user":{"login":"adamwintle","id":167075,"avatar_url":"https://avatars.githubusercontent.com/u/167075?v=3","gravatar_id":"","url":"https://api.github.com/users/adamwintle","html_url":"https://github.com/adamwintle","followers_url":"https://api.github.com/users/adamwintle/followers","following_url":"https://api.github.com/users/adamwintle/following{/other_user}","gists_url":"https://api.github.com/users/adamwintle/gists{/gist_id}","starred_url":"https://api.github.com/users/adamwintle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamwintle/subscriptions","organizations_url":"https://api.github.com/users/adamwintle/orgs","repos_url":"https://api.github.com/users/adamwintle/repos","events_url":"https://api.github.com/users/adamwintle/events{/privacy}","received_events_url":"https://api.github.com/users/adamwintle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-22T13:27:14Z","updated_at":"2015-08-22T13:30:13Z","closed_at":null,"body":"It's considered best practice to load JavaScript files at the bottom of the page because they block page loading (unless loaded `async`). \r\n\r\nThe mSearch2 JavaScript is required in the `<head>` section, otherwise this error occurs `Uncaught ReferenceError: mse2FormConfig is not defined`.\r\n\r\nIt would be best to allow the JavaScript to load at the bottom of the page. "},"comment":{"url":"https://api.github.com/repos/bezumkin/mSearch2/issues/comments/133703382","html_url":"https://github.com/bezumkin/mSearch2/issues/37#issuecomment-133703382","issue_url":"https://api.github.com/repos/bezumkin/mSearch2/issues/37","id":133703382,"user":{"login":"bezumkin","id":1257284,"avatar_url":"https://avatars.githubusercontent.com/u/1257284?v=3","gravatar_id":"","url":"https://api.github.com/users/bezumkin","html_url":"https://github.com/bezumkin","followers_url":"https://api.github.com/users/bezumkin/followers","following_url":"https://api.github.com/users/bezumkin/following{/other_user}","gists_url":"https://api.github.com/users/bezumkin/gists{/gist_id}","starred_url":"https://api.github.com/users/bezumkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezumkin/subscriptions","organizations_url":"https://api.github.com/users/bezumkin/orgs","repos_url":"https://api.github.com/users/bezumkin/repos","events_url":"https://api.github.com/users/bezumkin/events{/privacy}","received_events_url":"https://api.github.com/users/bezumkin/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T13:30:13Z","updated_at":"2015-08-22T13:30:13Z","body":"Because **config** must be at the start of the page. It can`t block page loading - it is raw text in page content, not a link to file.\r\n\r\nMain javascript file (default.js) load at the end of body."}}