How To: Properly Reference A JavaScript File
●
Permalink
●
suggest edit
Wow. After 2 hours of pain and suffering, I ran into my own daily WTF. I had some script contained within a .js file in my web. Like many times before, I created a reference to the script in the header. However, the script would only work in the Internet Explorer family and not in Firefox. After some aggravation (and my Starbuck’s Pike Place Roast kicking in) I realized that the MIME type was set to text/jscript
instead of text/javascript
. I wish we can modify IntelliSense locally to get items added/removed as needed.