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
Hands-On JavaScript High Performance
An example-driven guide covering modern web app development techniques and emerging technologies such as WebAssembly, Service …
book
JavaScript Patterns
What's the best approach for developing an application with JavaScript? This book helps you answer that …
book
Maintainable JavaScript
You may have definite ideas about writing code when working alone, but team development requires that …
book
Learning JavaScript Design Patterns
With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by …