I am getting a weird issue that my success callback is not executing. Here is my code:
$.ajax({
dataType: "script",
cache: false,
url: 'Scripts/XXXX.min.js',
success: function () {
alert('sad')
}
})
Just found that error is executing. Here is it’s value Object {readyState: 4, responseText: “/** ↵ * Klass.js – copyright @dedfat ↵ * XXXXXX); ↵”, status: 200, statusText: “OK”}
The issue was that there is was an error inside the file. That’s why success callback not executed.