Memory Leak?
![]() ![]() |
Hi, I've been using this script for a long time but recently I have been experiencing a memory leak when I leave a tab with facebook open. If I deactivate the script and change nothing else I experience no leak. I'm using:
I have no other greasemonkey scripts for facebook. (This is a public userscripts account from bugmenot, so don't PM me if you have any questions about my setup, just post them here and I'll check back) |
![]() ![]() |
I am seeing this same issue. Memory usage seems to grow steadily as long as the tab is open, even without any activity. I am trying to see which part of the code is causing this and will post back if I find anything. Edit: Commenting out the |
![]() ![]() |
Thanks yank, appreciate it. |
![]() ![]() |
Same problem here! And it being called on an interval (as setInterval would suggest) also concurs with my observations that there are lots of CPU usage spikes in my Process Explorer graphs! I love this script, so I hope it is fixed soon... |
![]() ![]() |
I can confirm yanksoccer117's suggestion works. The BOTTOM section of code needs commenting out like so:
// Wait for Facebook's content element to exist
if (self.location == top.location)
// var checker=setInterval(function(){
// if(document.getElementById('content')) {
// clearInterval(checker);
process(); // Start the listener
// }
// }, 200);
I simple terms, comment out every line except the |
![]() ![]() |
Ok, I've had a look and I believe the change I've just made should make it much, much better to use in this way. |



