Skip to content

Conversation

@tkrotoff
Copy link
Contributor

@tkrotoff tkrotoff commented Jan 5, 2020

No need to specify type="text/javascript" with script tag:

<script type="text/javascript" src="ua-parser.min.js"></script>
simply becomes
<script src="ua-parser.min.js"></script>

Supported by all browsers, the type attribute is optional and HTML5 defaults to "text/javascript"

Easier to read :-)

@faisalman faisalman merged commit 43169ce into faisalman:master Jan 5, 2020
@tkrotoff tkrotoff deleted the remove-script-type branch January 5, 2020 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants