Book description
If you're like most developers, you rely heavily on JavaScript to build interactive and quick-responding web applications. The problem is that all of those lines of JavaScript code can slow down your apps. This book reveals techniques and strategies to help you eliminate performance bottlenecks during development. You'll learn how to improve execution time, downloading, interaction with the DOM, page life cycle, and more.
Yahoo! frontend engineer Nicholas C. Zakas and five other JavaScript experts—Ross Harmes, Julien Lecomte, Steven Levithan, Stoyan Stefanov, and Matt Sweeney—demonstrate optimal ways to load code onto a page, and offer programming tips to help your JavaScript run as efficiently and quickly as possible. You'll learn the best practices to build and deploy your files to a production environment, and tools that can help you find problems once your site goes live.
- Identify problem code and use faster alternatives to accomplish the same task
- Improve scripts by learning how JavaScript stores and accesses data
- Implement JavaScript code so that it doesn't slow down interaction with the DOM
- Use optimization techniques to improve runtime performance
- Learn ways to ensure the UI is responsive at all times
- Achieve faster client-server communication
- Use a build system to minify files, and HTTP compression to deliver them to the browser
Publisher resources
Table of contents
- Dedication
- Foreword
-
Preface
- The Internet Evolves
- Why Optimization Is Necessary
- Next-Generation JavaScript Engines
- Performance Is Still a Concern
- How This Book Is Organized
- JavaScript Loading
- Coding Technique
- Deployment
- Testing
- Who This Book Is For
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- 1. Loading and Execution
- 2. Data Access
- 3. DOM Scripting
- 4. Algorithms and Flow Control
- 5. Strings and Regular Expressions
- 6. Responsive Interfaces
- 7. Ajax
- 8. Programming Practices
-
9. Building and Deploying High-Performance JavaScript
Applications
- Apache Ant
- Combining JavaScript Files
- Preprocessing JavaScript Files
- JavaScript Minification
- Buildtime Versus Runtime Build Processes
- JavaScript Compression
- Caching JavaScript Files
- Working Around Caching Issues
- Using a Content Delivery Network
- Deploying JavaScript Resources
- Agile JavaScript Build Process
- Summary
- 10. Tools
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: High Performance JavaScript
- Author(s):
- Release date: March 2010
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596802790
You might also like
book
You Don't Know JS: Async & Performance
No matter how much experience you have with JavaScript, odds are you don’t fully understand the …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn’t clean, it can bring a development organization …
book
You Don't Know JS: Up & Going
It’s easy to learn parts of JavaScript, but much harder to learn it completely—or even sufficiently—whether …