Javascript external script loading strangeness
I'm maintaining a legacy javascript application which has its components split into 4 JS files. They are "Default.aspx", "set1.aspx", "set2.aspx" and "set3.aspx". The ASPX pages writes out compressed JS from multiple (all-different) source files belonged to their respective set and set content-type header to "text/javascript". The application is invoked by adding a reference to the first set and creating the main entry object. <script src="/app/default.aspx" type="text/javascript"></script> <script type="text/javascript> var ax; // <body onload="OnLoad()"> function OnLoad() { ax = new MyApp