Speed Up Your JavaScript

0 Speed Up Your JavaScriptGoogle 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

Duration : 0:56:23


Technorati Tags: , , , , ,

24 Responses - Add Yours+

  1. Blinkwing says:

    42:00 At first I …
    42:00 At first I thought it was Steve Wozniak

  2. gremlack says:

    I mean, things …
    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

  3. davidgraycn says:

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

  4. wesw02 says:

    Things like using ‘ …
    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.

  5. MrDotMontage says:

    i dont understand …
    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)

  6. flowewritharoma says:

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

  7. htmlmm says:

    @keemor Only few …
    @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!

  8. DragonForceF0REVER says:

    Eight members of MS …
    Eight members of MS IE team watched this video.

  9. ssoonn88 says:

    just to note, …
    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

  10. neocoders says:

    All I can think …
    All I can think about now is how much refactoring  I need to do.

  11. altu892 says:

    every web …
    every web developer should watch this

  12. KPSrinivasa says:

    As my “Guru” said …
    As my “Guru” said about this video ” If you completed the prototypal inheritance, variable scope, and scope-chain traversal….then you might wanna watch it. It will make a lot of things very clear”

    Thanks a lot “Guru”

  13. TheHihoGuy says:

    great speaker with …
    great speaker with knowhow and great video

    the informations are very useful in the daily use of javascript…

  14. Rayden150 says:

    8 people dont …
    8 people dont understand javascript…

  15. locutusofworm says:

    THE DOM
    THE DOM

  16. reeceawtait says:

    a very long video …
    a very long video so i couldnt be bothered watching i mean you expect me to watch 56:23 mins on a video GROW UP!!!

  17. thereisthespoon says:

    @Skinnyuser not …
    @Skinnyuser not much. c++ has no concept of an arbitrary scope chain, object attribute/array lookups are static/fixed-offset-style and handled by the compiler and usually O(1), and loop optimization etc will be taken care of by a decent compiler.
    hth

  18. khajisavva says:

    @keemor
    He is a …

    @keemor
    He is a very good speaker and makes some interesting points, I just wish he didn’t make every phrase he utters sound like he is asking a question!

  19. eiriklil says:

    The background …
    The background noise is me off…

  20. beatbua says:

    Great talk, loved …
    Great talk, loved the guy

  21. spamero2 says:

    Great video and …
    Great video and lots of useful informations… however google employees must have been really drinking the day before or something… the most boring audience ever -.-

  22. thatmartolguy says:

    Oh, that audience …
    Oh, that audience had no soul. I laughed at all of those.

  23. jake1soccer says:

    I’m glad that …
    I’m glad that others share my view on animation in respect to performance. This portion of the presentation on reflow optimization was very informational and useful.

  24. JamesMGreene says:

    This speaker is …
    This speaker is fantastic, but it seems like his wisdom was lost on Google’s employees… they didn’t seem to care or react!

Leave a Reply