Including JavaScript files in WinJS project RRS feed

  • Question

  • in my default.html HEAD why does this work:


    <script src="/js/my-app.js"></script>

    but this doesn't work:

    <script type="javascript" src="/js/my-app.js"></script>

    It drove me nuts for about the last 3 hours .... I'm sure lots of people might want to give up like I nearly did.

    So I just wonder why defining the type causes failure? Note the file would still include, but you just didn't get any of the function calls inside it to be recognized.

    Thursday, December 13, 2012 4:47 PM