Need help?

I'm available for remote short term contracting or consultancy work. Please check out my LinkedIn profile for more details on my experience.

Please feel free to use the form below to contact me.



Memory management

If you’ve had the pleasure of building large applications with Backbone.js, then you probably stumbled into this problem. What happens to Views that are no longer being used? That’s the main question.

Let me give you a test scenario - what if you have your main container (a div), and that container will be populated by View content. Every time the user navigates to a new section, that main container’s content will be swapped with a new View. What happens to the old view? Well, it will be sitting there still. Can’t we just hide it, you say? Well, yeah, but then it’s still rendering all the events, based on Model changes (if it has Models bound to it).

jon | June 02, 2012 | Comments (0)