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
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …