Book Image

Backbone.js Essentials

By : Jeremy Walker
Book Image

Backbone.js Essentials

By: Jeremy Walker

Overview of this book

<p>This book offers insight into creating and maintaining dynamic Backbone.js web applications. It delves into the the fundamentals of Backbone.js and helps you achieve mastery of the Backbone library.</p> <p>Starting with Models and Collections, you'll learn how to simplify client-side data management and easily transmit data to and from your server. Next, you'll learn to use Views and Routers to facilitate DOM manipulation and URL control so that your visitors can navigate your entire site without ever leaving the first HTML page. Finally, you'll learn how to combine those building blocks with other tools to achieve high-performance, testable, and maintainable web applications.</p>
Table of Contents (20 chapters)
Backbone.js Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned how JavaScript code in general, and Backbone code in particular, can cause performance problems. We learned the three main causes of such problems (namely bandwidth, CPU, and memory), as well as techniques and methods that can be used to solve them. In particular, we learned how leaky event bindings or other references can prevent garbage collection, and how using listenTo or manually cleaning up references can enable garbage collection to work as expected.

In the next chapter, we'll examine the benefits of proper code documentation, learn how to solve some of the Backbone-specific documentation challenges, and consider which of the many quality documentation tools are the best for documenting your projects.