I am wondering if the following jquery code causes any memory leak:
$( function() {
var parent=$('table#mytable tbody').get(0);
$('tr:last', ...
|
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 ... |
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" ... |
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 ... |
In the following code:
$(document).ready(function() {
var content = "";
for (var i = 0; i < 1000; i++) {
...
|
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 ... |
i am using jquery and doing something like this
//dom
<div id='parent'>
</div>
//js
var _doSomeThing=function()
...
|
|
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 ... |
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 ... |
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 ... |
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 ... |
Just on my local machine, trying the run the following script causes my computer to crash... What am I doing wrong?
...
|
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 ...
|
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 ... |
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 ... |
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 ... |
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 ... |
I have two singletons:
Search - performs the search functionality
Topic - presentation of topics (search results)
var Search = new function () {
this.GetTopics = function () {
...
|
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 ... |
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 ... |
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: ...
|
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 ... |
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] ... |
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 ... |
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 ... |
Is jQuery .live() more memory intensive than a simple .click() .hover() or .keyup()?
I imagine it would be but to what degree?
|
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 ... |
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 ... |
after a ajax requst can you then free the memory by doing this?
function Ajax(){
this.url = null;
this.data = null;
this.success = ...
|
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, ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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(); ... |
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 |
|
|
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 ... |
globaldata = data; window.setTimeout(function () {$("#divmain").html(globaldata);}, 500); $("#divmain").show(); |
|
|
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 ... |
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 ... |
|
|
|
|
|
|
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
|
|
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 ? |
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 ... |
|
|