由于主线程上的"同步XMLHttpRequest导致的性能问题已被弃用"

时间:2015-10-01 08:05:32

标签: jquery performance asynchronous synchronous

我在通过ajax发送请求时收到此警告(主线程上的同步XMLHttpRequest因其对最终用户的体验的不利影响而被弃用)。 Jquery工作正常但是这个警告在我的网站上引起了性能问题。

Jquery代码

$.ajax({

    url: "www.testproject.com/doubt-solving", 
    type: 'POST',
    success: function(result){
    $('#my-content-div').css('text-align','none');            
    $("#my-content-div").html(result.html);
}});

0 个答案:

没有答案