memory « Development « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » Development » memory 

1. does this jQuery code snippet cause any memory leak?    stackoverflow.com

I am wondering if the following jquery code causes any memory leak:

$( function() {           
  var parent=$('table#mytable tbody').get(0);
  $('tr:last', ...

2. JavaScript Closures and Memory Leaks    stackoverflow.com

I read in Jquery in Action that memory leaks can result from javascript closures. "Unintended closures can have unintended consequences. For example, circular references can lead to memory leaks. A classic example ...

3. Memory leak involving jQuery Ajax requests    stackoverflow.com

I have a webpage that's leaking memory in both IE8 and Firefox; the memory usage displayed in the Windows Process Explorer just keeps growing over time. The following page requests the "unplanned.json" ...

4. Apparent memory leak in web application (maybe from AJAX?)    stackoverflow.com

I'm running an AJAX request from a JavaScript-powered (+jQuery) webpage every 5 seconds for a set of JSON data. I left my application on overnight, and by morning my computer had ...

5. Javascript Memory Usage    stackoverflow.com

In the following code:

$(document).ready(function() {
    var content = "";
    for (var i = 0; i < 1000; i++) {
      ...

6. ajax memory leak    stackoverflow.com

I am experiencing a slow memory leak in both IE and Firefox using a combination of ASP.NET AJAX and jQuery. My scenario is very similar to the one described here ...

7. javascript memory leaks    stackoverflow.com

i am using jquery and doing something like this

    //dom
    <div id='parent'>
    </div>

    //js
    var _doSomeThing=function()
 ...

8. Why does jquery leak memory so badly?    stackoverflow.com

This is kind of a follow-up to a question I posted last week: http://stackoverflow.com/questions/2429056/simple-jquery-ajax-call-leaks-memory-in-ie I love the jquery syntax and all of its nice features, but I've been having trouble with a ...

9. Why .data() function of jQuery is better to prevent memory leaks?    stackoverflow.com

Regarding to jQuery utility function jQuery.data() the online documentation says:

"The jQuery.data() method allows us to attach data of any type to DOM elements in a way that ...

10. jQuery to store data for sessions    stackoverflow.com

I am trying to use jQuery AJAX. What my requirement is, i wish to load user names from DB in dataset, convert it to JSON format and store it in memory ...

11. jQuery, .empty() and memory    stackoverflow.com

my application (ASP.NET MVC) shows a page which loads data constantly, at certain intervals. The jQuery script calls a controller and this one renders a different partial view, based on certain conditions. This ...

12. Update count every second causing massive memory problems    stackoverflow.com

Just on my local machine, trying the run the following script causes my computer to crash... What am I doing wrong?

           ...

13. out of memory error - can't find what is the reason    stackoverflow.com

i have this code that was made from tips here long time ago.

var tm
var tn;
var rot = true;
var rot2 = true;
var th = 482;
var tmh = 0;
var $paneTarget = $('#lyr1');

var slideshow ...

14. JQuery Garbage Collection - Will This Be Clean?    stackoverflow.com

Many articles (e.g. msdn) have told be that a circular reference can not be cleaned up in some browsers when it involves a DOM object and a JS object. (IE ...

15. Javascript / jQuery - How do I find the memory leak in my large amount of code?    stackoverflow.com

I've written a lot of code for a website I'm developing and only just now realised it has a memory leak. I noticed Firefox getting rather slow over the day and ...

16. jsonp memory leak    stackoverflow.com

So I've recently setup a chrome extension to refresh a page and call a jsonp web service I've written but there is a memory leak. I've searched all of the internet ...

17. Keeping track of javascript memory usage    stackoverflow.com

A web application I am currently working on appears to be leaking memory: with each refresh of a page IE's memory usage goes up and it never releases that memory. Since ...

18. Where is memory leak in JavaScript / jquery?    stackoverflow.com

I have two singletons: Search - performs the search functionality Topic - presentation of topics (search results)

var Search = new function () {

    this.GetTopics = function () {

   ...

19. How to avoid memory leak when refreshing data via JQuery?    stackoverflow.com

I've tried all methods found in this topic but couldn't find a definitive solution that would stop this problem. In the following code I've set up a timer to resend a ...

20. splitting a list in jQuery - conscious of memory and reusability    stackoverflow.com

I'm trying to write a function in jQuery that will split lists - or really, any element that has children - that is conscious of memory use and is general enough ...

21. memory usage and leaks with repeated ajax calls    stackoverflow.com

I have the following Ajax call which send form data to a page and finds specific response.

$.ajax({
    url: $("form[name='MainForm']").attr('action'),
    data: $("form[name='MainForm']").serialize()+'&btnupdateprice.x=0&btnupdateprice.y=0',
    type: ...

22. how to find memory leaks in javascript    stackoverflow.com

Is there any way to find memory leaks in javascript or jquery. i am working on javascript alot these days. I moved from middletier to UI.so I want to know if ...

23. Loading large amount of data into memory - most efficient way to do this?    stackoverflow.com

I have a web-based documentation searching/viewing system that I'm developing for a client. Part of this system is a search system that allows the client to search for a term[s] ...

24. Common techniques of cleaning memory in jquery    stackoverflow.com

I'm trying to debug some code that another developer wrote in jquery since page loads really slow and crashes the browser. I need an advice how to test , debug big ...

25. jQuery Ajax & Memory leak question    stackoverflow.com

I have web app that does periodic scan operations, and on a specific page, shows the status of those operations (and any previously-completed ones). I have an Ajax request that ...

26. Is jQuery .live() more memory intensive?    stackoverflow.com

Is jQuery .live() more memory intensive than a simple .click() .hover() or .keyup()? I imagine it would be but to what degree?

27. Is that a bad Javascript practice I'm doing here?    stackoverflow.com

for some reason I do that every time because I find it clean. I declare variables on top to use them below. I do that even if I use them only ...

28. How to prevent a javascript stack overflow?    stackoverflow.com

I've been building Conway's Life with javascript / jquery in order to run it in a browser Here. Chrome, Firefox and Opera or Safari do this pretty ...

29. freeing memory after ajax request    stackoverflow.com

after a ajax requst can you then free the memory by doing this?

function Ajax(){
    this.url = null;
    this.data = null;
    this.success = ...

30. Could this cause a JavaScript memory leak?    stackoverflow.com

I use a couple of functions heavily in my code. Now, as I'm looking for the source of high memory usage, I want to ensure that they're not the culprits. Using jQuery, ...

31. Can jQuery.data cause a memory leak?    stackoverflow.com

Would the following piece of code create a memory leak. According to the jQuery documentation use of the data function avoids memory leaks. It would be useful to confirm whether the following ...

32. UiWebView Obj-C how to cleanup a Javascript app with leaks    stackoverflow.com

My iPad app has a webview that contains an app written in jQuery. It is pretty heavy in that it loads Base64 strings from SQLite. In the Intstruments Allocations profiler the memory ...

33. Flot memory leak while associating two graphs using panning    stackoverflow.com

we are rendering two graphs with flot, which share the same x-axis. we plot them with:

plot1 = $.plot($("#placeholderGraph1"), p1_data, d1_options);
plot2 = $.plot($("#placeholderGraph2"), p2_data, d2_options);
we need to make sure that panning and ...

34. Life of JavaScript objects & Memory Leaks    stackoverflow.com

I have researched quite a bit about this but mostly by piecing other questions together, which still leaves some doubt. In an app that does not refresh the browser page at ...

35. jQuery 1.7.1 Ajax and Memory Leak    stackoverflow.com

I already had some problems when I was using jQuery 1.4.2 (http://stackoverflow.com/questions/8158739/ie-memory-leak-and-eval-with-jquery/8176724#8176724) Now I've updated my jQuery to version 1.7.1, and I have the memory increasing slowly after each iteration. This is the ...

36. Is the code below using memory recursively    stackoverflow.com

I'm doing a very simple Comet-like long polling in JavaScript The code below seems to work, but is it recursively calling itself and eating resources? How do I tell ? EDIT: Code edited ...

37. Memory leak explanation for a complete newbie?    forum.jquery.com

There are a lot of questions to be answered and we may not get it all in one post, so if you have more questions please ask.Memory leaks can be caused by any number of things such as infinite loops, badly formed conditional statements, etc.jQuery may "chow down" on some pages not because of memory leaks but because the DOM is ...

38. Memory leak load() empty() named functions    forum.jquery.com

Memory leak load() empty() named functions in Using jQuery 2 months ago I am wondering if I use jquery to load() into a div the following section of code will empty() remove the named functions and the anonomous functions that are attached as event handlers. Or will this cause a memory leak. Or Should the click ...

39. Has jQuery Ajax a memory leak?    forum.jquery.com

Has jQuery Ajax a memory leak? in Using jQuery 4 months ago Hi everyone,I just put together a very simple page with a button doing an ajax call to an .aspx page. As you can see I'm using the latest version of jQuery core available. I noticed that this simple script has a memory leak in ...

40. Two memory leaks    forum.jquery.com

Hi,we are developing a webapp which is supposed to show a continuously updating image and some data transfered by ajax.And now we see both parts leaking memory, which leads to a browser crash after running for some hours.The image updating is done by changing the image source.HTML:-----jQuery:-------...var img = $('#picture');var currentTime = new Date(); ...

41. Including JQuery 1.6.2 reference appears to cause memory leak    forum.jquery.com

I am a ASP.NET /VB.NET developer and recently updated one of my applications to include several jquery-powered features. Our support personnel has recently informed me that the application is leaking memory like a sieve (originally in IE7, but also in IE8). In an effort to diagnose this problem, I created a very simple page that only references the latest

42. memory leak when use 1.5.1    forum.jquery.com

43. Remove a function from the memory    forum.jquery.com

44. Using jQuery Api and Memory Leaks    forum.jquery.com

I have been using jQuery for over a couple of months and recently read up on Javascript memory leaks. I have two questions:1. When I bind (using .bind(...)) do I have to unbind them if I leave the page to avoid memory leaks or does jQuery remove them for me if I leave the page or refresh?2. I read up that ...

45. Memory leaks with Ajax calls    forum.jquery.com

globaldata = data; window.setTimeout(function () {$("#divmain").html(globaldata);}, 500); $("#divmain").show();

46. memory issues and $ function    forum.jquery.com

47. Does this script leak memory?    forum.jquery.com

48. ajax memory leak with chrome/mozilla (test-case provided)    forum.jquery.com

A little while ago I wanted to use ajax to regularly updatea status page. I don't know ajax/javascript so a quick searchsuggested jQuery, and was pleased at how easy it was.However I soon noticed that Chrome would blow out to hundredsof meg within a day. Didn't happen with Opera but does withMozilla.Dunno whether this is * a bug in my ...

49. empty() and memory leak    forum.jquery.com

i've had a problem that i think is similar. I had a div, and an array of three images. Every 5 seconds, i would prepend an image to the div, fadeout any images already in the div, then remove any images already in the div. This caused IE to use all of my memory(which isn't hard to do on my work ...

51. $.remove() memory leak    forum.jquery.com

53. Memory retention using jQuery ajax    forum.jquery.com

54. memory leak on ajax    forum.jquery.com

55. Autorefresh memory    forum.jquery.com

56. javascript memory leaks    forum.jquery.com

57. Memory leak while using jquery and ezpztool tip    forum.jquery.com

The ezpz_tooltip uses closures to hold information about the element and tip, which is pretty normal for a lot of plugins; I do it for a lot of my plugins too. It works fine until you use them like this, where you're calling the plugin lots of times and the data in the closures isn't released. Plugins like the ones in ...

58. [jQuery] Memory Leak Help    forum.jquery.com

I have a php page that is leaking pretty bad. I'm not sure if thisbelongs in this group or the php one but I don't think it's the phpthat giving me problems. I've tried to use tools like drip and sieve,and even just the task manager, to help narrow the problem down, butI'm not exactly sure how to fix it.Can someone ...

59. memory leaks    forum.jquery.com

Move this topic Forum : Getting Started Using jQuery Using jQuery Plugins Using jQuery UI Developing jQuery Core Developing jQuery Plugins Developing jQuery UI QUnit and Testing About the jQuery Forum jQuery Conferences jQuery Mobile Developing jQuery Mobile Sub forum : Move this topic Cancel Using jQuery brunsdom memory leaks in Using jQuery 2 years ago ...

60. [jQuery] Too much recusion/Out of Memory    forum.jquery.com

Hi All,I realize this is kind of vague, but I can't link to the site yetsince we're still in development. I'm using the latest jquery, and thehistory plugin to dynamically load html into a "main" div sectiondepending on user action. In Firebug, I sometimes notice 3 "too muchrecursion" messages, one in jquery, one in sizzle, and then one infirebug itself. Then ...

61. .detach memory leak.    forum.jquery.com

I don't know if this is being fixed or is fixed in the most recent versions, but in 1.4.2, when I detached an element in DOM and then reinserted into another place, jQuery left something in memory...leaked. I found that I had to call the .detach and then on the next line also .remove the same element to avoid the ...

62. Possible Memory Leak in remove() and empty()    forum.jquery.com

Hey all,I believe I have found a leak and have the beginnings of a solution toit.I'm writing an app that preforms ajax searching that returns prettylarge result sets. I render them via jQuery into a tbody. once asubsequent search is performed I call tbody.empty() and append the newresults. I created a test harness that would perform a predefinedsearch 5000 times in ...

63. jQuery.fragments leaking memory?    forum.jquery.com

65. .data( object ) and memory-leak    forum.jquery.com

There is one issue here, it seems ? The issue of jQuery conformance to ES5 ... Correct me if I am wrong, but ES5 is based on certain concepts. Which are defining the behaviour of ES5 objects. And one might adopt the view that jQuery should follow ES5 concepts , not the opposite ?

66. JQuery memory leak.    forum.jquery.com

Hello,We are developing a chm help file and we are using jquery as ourJavaScript library.One of our file is very large, and as been quite slow on unload (2sec).We tracked down the problem to :// Prevent memory leaks in IE// And prevent errors on refresh with events like mouseover in otherbrowsers// Window isn't included so as not to unbind existing unload ...

67. jQuery Memory Leaking    sitepoint.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.