Reputation: 55
Is it okay if I use <script type="text/javascript" src="http://example.com/file"></script>
without .js at the end of the source?
Upvotes: 3
Views: 183
Reputation: 129109
Yes, it's okay to omit the .js
, as long as your server is configured to cope with that and will serve that URI with a 200 OK
and Content-Type: text/javascript
.
Upvotes: 8