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

link 1

link 2

link 3


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -