0

This is my code:

$.ajax({
         async: true,
         url: 'ajaxStatusDashboard.action',
         data: "status="+status+"&ageing="+ageing+"&circleName="+circleNameSelected+"&selectedYear="+yearWiseSelected,
         success: function(data){
         $("#result").html(data);
         closeModal();
         $("#result").show();
         },
         type: 'POST'
        });

I get this error:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

How can I fix that?

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116
Venkat D
  • 9
  • 4
  • I am getting error like 'Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.' – Venkat D Jan 23 '18 at 06:36
  • Possible duplicate of [Synchronous XMLHttpRequest on the main thread is deprecated error](https://stackoverflow.com/questions/32726860/synchronous-xmlhttprequest-on-the-main-thread-is-deprecated-error) – Marc Jan 23 '18 at 08:55

0 Answers0