High Performance JavaScript
Build Faster Web Application Interfaces
Publisher: O'Reilly Media / Yahoo Press
Final Release Date: March 2010
Pages: 242

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
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
O'Reilly MediaHigh Performance JavaScript
 
5.0

(based on 3 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (3)

Cons

    Best Uses

        • Reviewer Profile:
        • Developer (3)

      Reviewed by 3 customers

      Sort by

      Displaying reviews 1-3

      Back to top

       
      5.0

      Excellent book for advanced developers

      By Francesco Pipita

      from Rende (CS), Italy

      About Me Designer, Developer

      Verified Reviewer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert

        Comments about O'Reilly Media High Performance JavaScript:

        This book is not for beginners. It dives into typical performance issues that arise when developing non trivial JavaScript web applications. The author, not only provides common optimization patterns, he also discusses in a very clear way JavaScript internals and some of the language's little known behaviors, things that for sure you should know if you claim to be a strong JavaScript hacker. The book is also well written and I've really enjoyed reading it. The only part of the book that, in my opinion, could've been improved, is the one about web application deploy. I'd have liked whether JavaScript based build tools (like Grunt) were taken into account and not just ANT. But, overall, I found this book great and probably, after "JavaScript, the definitive guide", is the book I liked the most about JavaScript. So I'd advice everyone to get a copy of it.

        (3 of 3 customers found this review helpful)

         
        5.0

        Required Reading

        By foxxtrot

        from Pullman, WA

        About Me Developer, Maker

        Verified Reviewer

        Pros

        • Accurate
        • Easy to understand

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about O'Reilly Media High Performance JavaScript:

          Nicholas Zakas has been putting up excellent content on his Blog for years, but this book is more than simply a rehash of that content. If you've never read Nicholas' writing, this is an amazing resource, but even if you have, there is content here that you may not have seen before.

          But what's best, is that Nicholas reaches out to his friends and colleagues for topics that they are able to dive deeper into. Steven Levithan's chapter on Regular Expressions is probably the most informative thing I've read this year.

          (6 of 6 customers found this review helpful)

           
          5.0

          Practical, Solid Tips For Fast Web Pages

          By jdruin

          from KY

          About Me Developer

          Verified Reviewer

          Pros

          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Intermediate
            • Novice
            • Student

            Comments about O'Reilly Media High Performance JavaScript:

            This book is somewhat like a continuation of the Faster Web Sites and Even Faster Web Sites books which cover web sites performance more generally.

            High Performance JavaScript goes much deeper into the scripting language but does also cover JavaScript's interaction with HTML and extensively covers JavaScript's interaction with the DOM.

            One of the best things about the book is the extensive coverage of the subject. The topics are broken down into Page Load Times, Object usage, Dynamic DOM, Looping and Decision Statements, RegEx, User Controls/Interfaces, AJAX, Best Practice, etc. In each section the author provides graphs to show the relative time required by various techniques. For the most part, the best practices can be applied to any language.

            Their are extensive examples provided for each technique. Also, there is coverage of libraries that can be used to provide functionality without reinventing the wheel and coverage of tools that can allow the developer to measure/benchmark their own code.

            The one drawback might be that lots of techniques are demonstrated that pull data from sources then dynamically update the page. Examples might be real-time DOM scripting, using the innerHTML attribute, or modifying CSS on the fly. In these cases, the injected content needs to be sanitized or escaped for safety but I did not see examples of escaped content which could lead to mallicious injected content. However, the theme of the book is not security and the authors did mention this could be possible although "make safe" example are not given so I cannot reduce the rating on the basis.

            The book covers its subject very well. Recommended for web developers and those who are learning JavaScript.

            Displaying reviews 1-3

            Back to top

             
            Buy 2 Get 1 Free Free Shipping Guarantee
            Buying Options
            Immediate Access - Go Digital what's this?
            Ebook: $27.99
            Formats:  APK, DAISY, ePub, Mobi, PDF
            Print & Ebook: $38.49
            Print: $34.99