Speed Up Your JavaScript
Top Comments
All Comments (59)
-
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
i laughed at THE DOM too! humourless google employees...
nathan87 2 years ago 59
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!
keemor 2 years ago 43