I've seen this resolved within the AJAX call itself, unfortunately, I'm not using the AJAX call.
I have a series of buttons that are toggling a Bootstrap modal, and plugging a URL and a parameter into the modal. Everything loads just fine, I'm just getting the Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. Warning.
I know that if I were to set async to TRUE, all of this would go away, but I'm loading in all of my content through Bootstrap's shown.bs.modal
HTML
<a data-remote="false" data-toggle="modal" data-target="#playbackPlus" href="player.jsp?track=songFile.mp3">Launch Modal</a>
<div class="modal fade" id="playbackPlus" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content playbackplus">
<%-- MODAL BODY START --%>
<div class="modal-body">
</div>
<%-- MODAL BODY END --%>
</div>
</div>
</div>
JS
$('#playbackPlus').on('shown.bs.modal', function(e) {
var link = $(e.relatedTarget);
$(this).find(".modal-body").load(link.attr("href"));
});
Where/How do I get rid of the Sychronous XMLHttp Warning?