I'm a bit confused with JavaScript's delete operator. Take the following piece of code:  var obj = {     helloText: "Hello World!" };  var foo = obj;  delete obj;   After this piece of code has been executed, obj is null, but foo st...
Is there a way to find out how much memory is being used by a web page, or by my jquery application?   Here's my situation:  I'm building a data heavy webapp using a jquery frontend and a restful backend that serves data in JSON.  The page...
I know that Javascript has a garbage collector. Therefor, using delete remove only a reference to the object, and when there is no more reference to this object, it is deleted by the GC.  Javascript is tricky, with the closures, the fuzzy name space...
We have some questions here that discuss delete in a more abstracted way, but I'm looking for practical examples of when use of delete could be used, versus doing something such as setting the property to null or undefined.  The delete operator d...
I was reading this article ( http://www.ibm.com/developerworks/web/library/wa-memleak/ ) on IBM's website about memory leaks in JavaScript when I came across a memory leak that didn't quite look liked it leaked:  <html> <body> <...
I'm attempting to use a jQuery script I've found on http://swip.codylindley.com/DOMWindowDemo.html on my website to create a lightbox/domwindow popup when a visitor clicks a link.  Unfortunately, it appears the script isn't releasing memo...
Let's say I start up a var for an Object in my code  var base = {x:Infinity, y:Infinity};  and later in the same scope I do  var base = {x:0, y:0}  I get that I can re-use the existing variable, but I'm trying to iterate on a point.   Does th...
As part of my application, I'm putting together a set of small Dom nodes that are not shown all at once. I'm storing them in an internal array.  The user can invoke their display in which case I reparent them to the div that is used to displa...
I have a memory "leak" problem in Microsoft Edge browser.  When I run a memory profiling session and take several snapshots, I see the memory between snapshot being freed. but the total memory consumption keep growing (see image).    The memo...
I recently got into javascript, and my html coding skills are somewhat lacking. That being said, I've run into a few funny things that you can find in javascript. Because of the close use of javascript and html I'm afraid I've created a m...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.