{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1397","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1397/comments","events_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1397/events","html_url":"https://github.com/backdrop/backdrop-issues/issues/1397","id":120921077,"number":1397,"title":"Remove type=\"text/javascript\" from script tags","user":{"login":"dboulet","id":208615,"avatar_url":"https://avatars.githubusercontent.com/u/208615?v=3","gravatar_id":"","url":"https://api.github.com/users/dboulet","html_url":"https://github.com/dboulet","followers_url":"https://api.github.com/users/dboulet/followers","following_url":"https://api.github.com/users/dboulet/following{/other_user}","gists_url":"https://api.github.com/users/dboulet/gists{/gist_id}","starred_url":"https://api.github.com/users/dboulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboulet/subscriptions","organizations_url":"https://api.github.com/users/dboulet/orgs","repos_url":"https://api.github.com/users/dboulet/repos","events_url":"https://api.github.com/users/dboulet/events{/privacy}","received_events_url":"https://api.github.com/users/dboulet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T03:15:44Z","updated_at":"2015-12-08T08:01:10Z","closed_at":null,"body":"In HTML5, the `type` attribute on the `<script>` element is optional, and as far as I know, no browsers require it. Since `text/javascript` is the default value for this attribute, we can save some bytes by removing it from script tags output by Backdrop."},"comment":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/comments/162807438","html_url":"https://github.com/backdrop/backdrop-issues/issues/1397#issuecomment-162807438","issue_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1397","id":162807438,"user":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T08:01:10Z","updated_at":"2015-12-08T08:01:10Z","body":"Sounds like a good idea to me. FYI from 2010: http://stackoverflow.com/questions/4195427/is-the-type-attribute-necessary-for-script-tags\r\n\r\nIt seems unlikely that people would start building new sites that need to validate as HTML4 or XHTML 1.x, so I'd be for dropping the attribute."}}