Using Notepad++ and XAMPP to test stuff, then I upload it to the website over FTP. In the head of my code, I have this to call jQuery and the script:
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/portfolio.js"></script>
and it works fine locally on my XAMPP server. But as soon as it’s uploaded onto the host, it throws this error:
Resource interpreted as script but transferred with MIME type text/html.
Not sure what’s going on, or why it’s having a hard time using jQuery. Any ideas?
Turns out the file name “jQuery.js” is what messed it up. Locally, the uppercase ‘U’ wasn’t an issue, but on the server it’s what caused it to break. I didn’t even know this could happen :-/