Speed Up Your JavaScript
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
Duration : 0:56:23
42:00 At first I …
42:00 At first I thought it was Steve Wozniak
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
terrific lecture. …
terrific lecture. but a question: what is the funny thing about the DOM?
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.
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)
pretty programatic …
pretty programatic lecturing talk! thanks through communicating bilateral intelligence.
@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!
Eight members of MS …
Eight members of MS IE team watched this video.
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
All I can think …
All I can think about now is how much refactoring I need to do.
every web …
every web developer should watch this
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”
great speaker with …
great speaker with knowhow and great video
the informations are very useful in the daily use of javascript…
8 people dont …
8 people dont understand javascript…
THE DOM
THE DOM
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!!!
@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
@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!
The background …
The background noise is me off…
Great talk, loved …
Great talk, loved the guy
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 -.-
Oh, that audience …
Oh, that audience had no soul. I laughed at all of those.
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.
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!