Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Speed Up Your JavaScript

Loading...

Sign in or sign up now!
65,510
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Jun 4, 2009

Google Tech Talk
June 4, 2009

ABSTRACT

Web Exponents: Speed Up Your JavaScript
Presented by Nicholas C. Zakas.

As an interpreted language, JavaScript is filled with hidden performance issues that conspire to slow down your code and ruin the user experience. Learn exactly what is fast, what is slow, and what you can do to squeeze that last bit of performance out of your JavaScript code.

Nicholas C. Zakas is the author of Professional JavaScript for Web Developers, 2nd Edition (Wrox, 2009), co-author of Professional Ajax, 2nd Edition (Wrox, 2007), and a contributor to Even Faster Web Sites (O'Reilly, 2009). Nicholas is principal front end engineer for the Yahoo! homepage and is also a contributor to the Yahoo! User Interface (YUI) library.

The Web Exponents Series is hosted by Steve Souders

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Top Comments

  • i laughed at THE DOM too! humourless google employees...

  • Very pragmatic presentation, real situations with solutions which are measured and tested. Nicholas Zakas is a great speaker for me. Thank you for sharing your knowledge!

see all

All Comments (59)

Sign In or Sign Up now to post a comment!
  • 42:00 At first I thought it was Steve Wozniak

  • I mean, things like changing `while (j<len)` to `while (j--)` might be 2x as fast when `process(item)` does nothing, but, its unlikely that the while condition is going to be your performance bottleneck. Unless you're doing it a few hundred thousand times

  • terrific lecture. but a question: what is the funny thing about the DOM?

  • Things like using 'j--' as your loop condition to reduce evaluations or storing a deep property as a local variable to reduce look up (var name = object.name.name) may help you squeeze a little more performance out of your app, but there is something to be said for code readability. IMHO, in most cases you should not sacrifice code readability for performance, especially in a large app. Many of the performance issues discussed are problems with browser engined, not the JS apps.

  • i dont understand javascript. i would like to know how to read and write it but there are no beginner tutorials.(starting from the begining)

  • pretty programatic lecturing talk! thanks through communicating bilateral intelligence.

  • @keemor Only few tech talk or Google videos has the quality of this video. Straight to the point, and which every other talk was this easy to understand for beginners. He is good!

  • Eight members of MS IE team watched this video.

  • just to note, documentFragment looks awesome and I was never aware of it, but it seems it still doesn't keep up in ease and speed of the old innerHTML

View all Comments »
Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more