I am utilizing a JQuery dialog to load a partial view within it.
$("#WOdialog").dialog({
width: 765,
resizable: false,
closeOnEscape: true,
modal: true,
close: function () {
},
open: function () {
$(this).load("@Url.Action("AddWorkOrder")");
}
});
The partial view I am loading is a regular HTML file, but it contains some <script></script>
tags. My website works locally but encounters issues when deployed. The root of the problem seems to be this error:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
I suspect that the issue is related to the async
keyword and loading external JS files. I have searched on Stack Overflow for solutions, but none of them have been effective in resolving the problem.