To automate the compression and the junction of my js files, I use this tool.
Once installed and configured, the code below returns a js compressed and concatenated with all the JS folder project
<script src="@BundleTable.Bundles.ResolveBundleUrl("~/Scripts/pages/project-projectPhotos/js")"></script>
In my page, have the following code:
loaderPhotosPage = function(url) {
$.getScript('/Scripts/pages/project-projectPhotos/js', function() {
alert(url); //This code is not executed!! Here's the problem;
});
};
alert
is never executed!
To simulate a test tool using Google Chrome Developer Tools, I got the following results:
Code executed on Google Chrome Developer
Look at the console, and the header. The execution is very successful!
Now the preview result
The HTTP status is as canceled, why? Yet the code in the console was running normally (text: success)
I put the js file complete at this link.
See the get, with the link of the script is running normally!
Thanks for the help!
The canceled status is an issue with current dev channel Google Chrome. It has been fixed upstream and will propagate to the dev channel accordingly.