jQuery works on local host, but not on website
- by Cortopasta
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?