javascript - jquery script is using to much memory -


I have the code below on the social network site, it loads a file that shows new notification messages to users, if They exist. / P>

The problem occurs when I open the page for some time, it ultimately consumes lots of memory on my PC and starts to make Firefox non-responsive and tells an error message That memory is decreasing and I am asking if

is there a way to do this, but without using so much memory over time?

  & lt; Script type = 'text / javascript' & gt; $ (Document) .ready (function () {var updatenotification = function () {$ ('# notificationcontainer'). Load ('http: //localhost/member/beta_new/notifications.inc.php'). FadeIn ( "Slow");}; var auto_refresh = setInterval (function () {updatenotification ();}, 60000); update ();}); & Lt; / Script & gt;  

What do you really do back I think this is a big ISH domain piece is. You can change the code just to return a little Jason string, check if there is a valid new notification, and then check the division instead of reloading some markups, if there are new notifications. Can you show the markup that you are returning to

I do not really know if your return is just a small HTML deviation then I can actually see this issue. The script looks okay and should not be those issues about which you speak.

Also remember that there are big problems in Firebug at this time. There are some pretty messy worms that cause memory warning dialogue when heavy orange Ajax / JS sites such as Stack Overflow, browse netwibes. Your average user (I think!) Will not have firebug, so nothing will be visible


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -