This is my code,
<script type="text/javascript">
var refreshId = setInterval(function () {
var pathtopage = window.location.href;
$('#refreshing').load(pathtopage + '#refreshing');
},2000);
</script>
When i run the code,i got error like this
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
How to rectify the error
load()should be asynchronous anyway?