High Performance JavaScript
Build Faster Web Application Interfaces
Samenvatting
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
Specificaties
Inhoudsopgave
1. Loading and Execution
-Script Positioning
-Grouping Scripts
-Nonblocking Scripts
-Summary
2. Data Access
-Managing Scope
-Object Members
-Summary
3. DOM Scripting
-DOM in the Browser World
-DOM Access and Modification
-Repaints and Reflows
-Event Delegation
-Summary
4. Algorithms and Flow Control
-Loops
-Conditionals
-Recursion
-Summary
5. Strings and Regular Expressions
-String Concatenation
-Regular Expression Optimization
-String Trimming
-Summary
6. Responsive Interfaces
-The Browser UI Thread
-Yielding with Timers
-Web Workers
-Summary
7. Ajax
-Data Transmission
-Data Formats
-Ajax Performance Guidelines
-Summary
8. Programming Practices
-Avoid Double Evaluation
-Use Object/Array Literals
-Don't Repeat Work
-Use the Fast Parts
-Summary
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
-JavaScript Profiling
-YUI Profiler
-Anonymous Functions
-Firebug
-Internet Explorer Developer Tools
-Safari Web Inspector
-Chrome Developer Tools
-Script Blocking
-Page Speed
-Fiddler
-YSlow
-dynaTrace Ajax Edition
-Summary
Index
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht