Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 858711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:34:43+00:00 2026-05-15T08:34:43+00:00

The book Learning jQuery says IE has memory leak for the DOM object having

  • 0

The book Learning jQuery says IE has memory leak for the DOM object having a property referencing a function, and the function also referencing the DOM object, thus having a “circular reference”, like this:

onload = function() {
    var foo = document.getElementById('foo');
    foo.onclick = function() {  // DOM object foo's onclick property refers to a function
       foo.innerHTML = "hello"  // the function's body refers to the DOM object
    }                           // therefore circular reference
}

IE can handle circular references for garbage collection, but not when the circular references involve both DOM object and Javascript object, because they are handled by different memory managers.

and:

[the memory leak… and] the resulting
[reference] looping can’t be released
by IE even when we navigate away from
the page.

never freed until browser is closed.

Is it true? Why does IE not release those memory even when a user leaves the page? Is it because the user may click Back and come back to the page, and IE would like to keep the state of the page? In that case, what if the user is on the memory leak page, and then clicks Back, and then goes to google.com? Then the page is not viewable by any Back or Forward, and the memory leak problem can go away without closing the browser?

Or even when the tab is closed, without closing the browser?

Does this kind of memory leak happen in IE 8 too?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:34:44+00:00Added an answer on May 15, 2026 at 8:34 am

    Memory leaks are a class of program bugs, so you’re basically asking “why is IE buggy?”. The answer to that is, obviously, “because a programmer, somewhere, made a mistake”.

    While some browsers intentionally keep the page state even when you navigate away from it (notably Opera and FF), a “memory leak” means memory that the program doesn’t use anymore, but forgot to release. In this case, IE has stopped caring about that part of memory, but didn’t tell this to the OS (Windows), which still sees it as “used by IE”. So this part of the memory hangs in a no-man’s land, until the browser is closed – because when the browser process exits, the OS marks all memory allocated to that process as “free”.

    Memory leaks are a rather insidious type of bug, because the program seems to function correctly, but gradually consumes more and more memory.

    See e.g. http://en.wikipedia.org/wiki/Circular_reference and http://en.wikipedia.org/wiki/Garbage_collection_(computer_science) for further reading on this topic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently learning jQuery by reading jQuery in Action. The book discusses separation of
I am learning jQuery from book Learning jQuery, and found part of code that
I am trying my hardest to learn jQuery with the Learning Jquery 1.3 Book
A) Book I’m learning from says that if we handle Login.Authenticate event, then we
I am learning JQuery with a MVC3 book. I find that Json data is
I'm reading the book Learning XNA 4.0, and I'm in the object oriented design
Im am using a pattern from the book Learning Cocos2D. I have a GameState
If anyone could recommend a good book for learning mySQL as well, that would
I am following a tutorial in the book Machine Learning for Hackers by Drew
I am learning a book on data structures, and complied their node in linked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.