Some scripts on localhost not loading 404 error

  • Hi,

    I am trying to load scripts on localhost but all I am getting is 404 error and following message in a debugger: "The script from “http://localhost/js/onepagescroll.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type."

    Could you help?


  • Here is the script I have included in the header using your plug in:
    <script type="text/javascript" src="js/onepagescroll.js"></script>
    <link rel="stylesheet" href="css/bootstrap.min.css">

  • Hello there,

    I think the link might be broken or the script is not on the http://localhost/js/onepagescroll.js

    Does the script loads when you directly go the link using your browser. In which directory you have added those file? I guess its not the root of the wp dir.

Log in to reply