Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentClient Side ScriptingJavaScript right
  Reply to this topic Start new topic
left right
anniuapoi
post Jul 15 2011, 02:24 AM
Post #1


Newbie
*

Group: Members
Posts: 14
Joined: 5-July 11
Member No.: 197,197



Hi Guys,

I have a page that has some ajax in it.
Every few seconds or so it pulls data from a php script and places it in a div.

The divs get updates fine,, However in chrome ive been monitoring its footprint.

I can see that it does like 10k/s network usage while it updates a div, However its memory footprint keeps increasing.

Is there anyway i can get the ajax / javascript to clean up a bit better and keep its footprint lower?


Thanks
Go to the top of the page 
 
  + Quote Post
Unit158
post Aug 3 2012, 06:08 AM
Post #2


Newbie
*

Group: Members
Posts: 14
Joined: 21-January 12
Member No.: 226,854



Because of the way browsers are constructed, it will always increase.
Although, it shouldn't change network usage. Perhaps give the timer for your pull function more time, so it's refresh rate will reduce? Oh, and don't put it in an infinite loop without a giving the computer a break somewhere in the program, it is just good habit.
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 19th June 2013 - 04:00 AM