witho...">

Should the external js file contain the .js extension?

Can i use <script type="text/javascript" src="http://example.com/file"></script>

without .js at the end of the source?

+3
source share
1 answer

Yes, it’s okay to omit .jsit if your server is configured to handle this and will serve this URI with 200 OKand Content-Type: text/javascript.

+8
source

All Articles