jquery - browser performance after some ajax calls -
i use jquery make ajax request every 15 seconds update <div> element information. works fine after minutes, when ajax request runs few times, got browser performance issues. need run page in firefox, here problem of all.
this way call function every 15 sec.:
setinterval(syncdiv, 15000); this ajax request:
function syncdiv() { $.ajax({ url: 'code_get_msg_sync.php?', cache: false, // problem exist cache true false success: function(data) { $('#msgdiv').html(data); } }); }
try using
e.preventdefault(); before submit or click send ajax request ..just try
also there few links reference
Comments
Post a Comment