Navigation

    Digital Liberation Forums

    • Register
    • Login
    • Search

    Some scripts on localhost not loading 404 error

    Header and Footer Scripts
    2
    3
    30
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • peledona
      peledona last edited by

      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?

      Thanks!

      1 Reply Last reply Reply Quote
      • peledona
        peledona last edited by

        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">

        1 Reply Last reply Reply Quote
        • anand
          anand last edited by

          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.

          1 Reply Last reply Reply Quote
          • First post
            Last post