Home > html5 > Avoiding zoombie screens and memory leaks in backbone architecture

Avoiding zoombie screens and memory leaks in backbone architecture

September 13th, 2012 Leave a comment Go to comments

Backbone.js promotes single page architecture.

When switching subview of the backbone app there is always a risk of the old view being not released properly and leaving resources in the browser memory. This has deadly consequences for the application that will slow down initially and then crash/stall browser. This situation is even more severe on mobile platforms.

Solution implementing a destructor for each view that would trigger a cleanup code of distractors. Here is a link to the article that provides description of the solution:

http://coenraets.org/blog/2012/01/backbone-js-lessons-learned-and-improved-sample-app/


Be Sociable, Share!
No TweetBacks yet. (Be the first to Tweet this post)
Categories: html5 Tags:
  1. No comments yet.
  1. No trackbacks yet.