Giter VIP home page Giter VIP logo

Comments (4)

timmywil avatar timmywil commented on June 15, 2024

Thanks for opening an issue. As noted in your other issue, retaining something this small should not cause problems. Intentionally retaining a variable is not the same as a memory leak. A memory leak is when a particular operation continues to increase memory, but here there is only ever one element retained. The question is, does this cause a real world issue? It's so small I don't see how.

Anyway, the container element is no longer on the main branch. There is still a div and it is no longer nulled, but its purpose goes a bit beyond the support test.

from jquery.

melloware avatar melloware commented on June 15, 2024

Understood but in chrome it forces a whole tree of things to be retained according to the heap dump.

from jquery.

mgol avatar mgol commented on June 15, 2024

@melloware can you provide more details about this tree?

We’re all for solving real memory issues but we first need to know there’s a real one.

BTW, we cannot call computeStyleTests() eagerly; we spent a lot of effort in jQuery 1.11/2.1 to make sure support tests that trigger layout are done lazily for performance reasons.

from jquery.

melloware avatar melloware commented on June 15, 2024

@mgol i totally understand. I think locally I just need to build a debug Jquery version that does this. I came to this because I am helping a client debug client side memory leaks and their Detached DOM keeps growing so I am trying to filter out real issues from noise.

No worries leave this closed and thanks for the responsiveness!

from jquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.