Ajax Slowly Increasing Browser Memory Footprint.. |
||
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.
Zymic Webmaster Forums Web Design & Development Client Side Scripting JavaScript |
||
![]() |
Ajax Slowly Increasing Browser Memory Footprint.. |
||
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 |
|
|
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. |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 22nd May 2013 - 10:02 AM |