Reputation: 8811
I was reading a tutorial on HTML 5 Canvas Animation with javascript (of course). In the header, the author used
application/javascript
which is rather new to me because I've only seen text/javascript
used. Can anyone help?
There is every likelihood this question has been asked before but I'm using a phone to do this so I can't see any similar questions.
Thanks
Upvotes: 2
Views: 2046
Reputation: 60526
Guidelines:
<script>
tag although it's not really requiredUpvotes: 2
Reputation: 28795
application/javascript
is the correct MIME type for Javascript, although text/javascript
shouldn't cause any issues
Upvotes: 2