<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(document).ready(function() {
var refreshId = setInterval(function() {
$("#curl-refresh").load('test-xml.php');
}, 30000);
$.ajaxSetup({ cache: false });
});
</script>
I am trying to refresh the div content without refreshing the whole page. I'm getting the desired output, but the browser hangs after some time.
I have seen similar questions, but none of them helped me. Please help me out
My question is similar to this: Auto refresh div causing browser to hang