reklama - zainteresowany?

High Performance JavaScript - Helion

High Performance JavaScript
ebook
Autor: Nicholas C. Zakas
ISBN: 978-14-493-8874-4
stron: 231, Format: ebook
Data wydania: 2010-03-11
Księgarnia: Helion

Cena książki: 101,15 zł (poprzednio: 117,62 zł)
Oszczędzasz: 14% (-16,47 zł)

Dodaj do koszyka High Performance JavaScript

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

Dodaj do koszyka High Performance JavaScript

 

Osoby które kupowały "High Performance JavaScript", wybierały także:

  • Windows Media Center. Domowe centrum rozrywki
  • Ruby on Rails. Ćwiczenia
  • DevOps w praktyce. Kurs video. Jenkins, Ansible, Terraform i Docker
  • Przywództwo w Å›wiecie VUCA. Jak być skutecznym liderem w niepewnym Å›rodowisku
  • Scrum. O zwinnym zarzÄ…dzaniu projektami. Wydanie II rozszerzone

Dodaj do koszyka High Performance JavaScript

Spis treści

High Performance JavaScript. Build Faster Web Application Interfaces eBook -- spis treści

  • High Performance JavaScript
  • 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
    • Script Positioning
    • Grouping Scripts
    • Nonblocking Scripts
      • Deferred Scripts
      • Dynamic Script Elements
      • XMLHttpRequest Script Injection
      • Recommended Nonblocking Pattern
        • The YUI 3 approach
        • The LazyLoad library
        • The LABjs library
    • Summary
  • 2. Data Access
    • Managing Scope
      • Scope Chains and Identifier Resolution
      • Identifier Resolution Performance
      • Scope Chain Augmentation
      • Dynamic Scopes
      • Closures, Scope, and Memory
    • Object Members
      • Prototypes
      • Prototype Chains
      • Nested Members
      • Caching Object Member Values
    • Summary
  • 3. DOM Scripting
    • DOM in the Browser World
      • Inherently Slow
    • DOM Access and Modification
      • innerHTML Versus DOM methods
      • Cloning Nodes
      • HTML Collections
        • Expensive collections
        • Local variables when accessing collection elements
      • Walking the DOM
        • Crawling the DOM
        • Element nodes
        • The Selectors API
    • Repaints and Reflows
      • When Does a Reflow Happen?
      • Queuing and Flushing Render Tree Changes
      • Minimizing Repaints and Reflows
        • Style changes
        • Batching DOM changes
      • Caching Layout Information
      • Take Elements Out of the Flow for Animations
      • IE and :hover
    • Event Delegation
    • Summary
  • 4. Algorithms and Flow Control
    • Loops
      • Types of Loops
      • Loop Performance
        • Decreasing the work per iteration
        • Decreasing the number of iterations
      • Function-Based Iteration
    • Conditionals
      • if-else Versus switch
      • Optimizing if-else
      • Lookup Tables
    • Recursion
      • Call Stack Limits
      • Recursion Patterns
      • Iteration
      • Memoization
    • Summary
  • 5. Strings and Regular Expressions
    • String Concatenation
      • Plus (+) and Plus-Equals (+=) Operators
        • Firefox and compile-time folding
      • Array Joining
      • String.prototype.concat
    • Regular Expression Optimization
      • How Regular Expressions Work
      • Understanding Backtracking
        • Alternation and backtracking
        • Repetition and backtracking
      • Runaway Backtracking
        • The solution: Be specific
        • Emulating atomic groups using lookahead and backreferences
        • Nested quantifiers and runaway backtracking
          • From bad to worse
      • A Note on Benchmarking
      • More Ways to Improve Regular Expression Efficiency
      • When Not to Use Regular Expressions
    • String Trimming
      • Trimming with Regular Expressions
      • Trimming Without Regular Expressions
      • A Hybrid Solution
    • Summary
  • 6. Responsive Interfaces
    • The Browser UI Thread
      • Browser Limits
      • How Long Is Too Long?
    • Yielding with Timers
      • Timer Basics
      • Timer Precision
      • Array Processing with Timers
      • Splitting Up Tasks
      • Timed Code
      • Timers and Performance
    • Web Workers
      • Worker Environment
      • Worker Communication
      • Loading External Files
      • Practical Uses
    • Summary
  • 7. Ajax
    • Data Transmission
      • Requesting Data
        • XMLHttpRequest
          • POST versus GET when using XHR
        • Dynamic script tag insertion
        • Multipart XHR
      • Sending Data
        • XMLHttpRequest
        • Beacons
    • Data Formats
      • XML
        • XPath
        • Response sizes and parse times
      • JSON
        • JSON-P
        • Should you use JSON?
      • HTML
      • Custom Formatting
      • Data Format Conclusions
    • Ajax Performance Guidelines
      • Cache Data
        • Setting HTTP headers
        • Storing data locally
      • Know the Limitations of Your Ajax Library
    • Summary
  • 8. Programming Practices
    • Avoid Double Evaluation
    • Use Object/Array Literals
    • Dont Repeat Work
      • Lazy Loading
      • Conditional Advance Loading
    • Use the Fast Parts
      • Bitwise Operators
      • Native Methods
    • 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
      • Console Panel Profiler
      • Console API
      • Net Panel
    • Internet Explorer Developer Tools
    • Safari Web Inspector
      • Profiles Panel
      • Resources Panel
    • Chrome Developer Tools
    • Script Blocking
    • Page Speed
    • Fiddler
    • YSlow
    • dynaTrace Ajax Edition
    • Summary
  • Index
  • About the Author
  • Colophon
  • Copyright

Dodaj do koszyka High Performance JavaScript

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.