Episode 15: JavaScript Zombies

Javascript zombies preview

Watch The Free Preview For “JavaScript Zombies”

 

Subscribe now to watch the full episode!

Get Instant Access To All Episodes »


 

Stop Writing Apps That Eat Memory And Kill Browsers

 As you develop, if you care about memory usage and performance, you should be aware of some of what’s going on in your user’s browser’s JavaScript engine behind the scenes.

- Addy Osmani 

Have you ever seen a browser using hundreds of megs of memory? Or gigs of memory? Are you tired of your JavaScript web apps crawling too a stop after a while?

Memory management in JavaScript is a necessary and under-valued part of building scalable web apps in browsers. If you don’t take care to release your objects and data, then you’re essentially causing memory leaks. This will wreak havoc on your app and your users’ browser.

In less than 40 minutes, this high-quality, downloadable screencast will show you:

  • the fundamentals of memory allocation and garbage collection
  • yet another reason why global variables are bad for your app
  • the proper use of of the delete keyword, and why you shouldn’t use it.
  • how to identify and clean up most memory leaks
  • what a “zombie object” is, and how to prevent them
  • why Backbone.js added a listenTo and stopListening method to its event system

If you’re a developer building Single Page Applications (SPAs), writing a lot of JavaScript in a browser, you need to understand the basics of memory management. You need to know when JavaScript’s garbage collector will be allowed to clean up your data and objects. Your apps and your users will thank you.

  • davilious

    Thank you very much for this episode, it is very well explained and also very good structured. So useful.

  • David Tang

    Definitely my favorite video of them all. Hope a part 2 is coming!