Speed Up Your JavaScript

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 61

  • @kartheepan84
    @kartheepan84 12 лет назад

    Excellent presentation. The best part of the presentation is that every small code changes and how would affect in the different browser with statistics.

  • @keemor
    @keemor 15 лет назад

    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!

  • @TheHihoGuy
    @TheHihoGuy 14 лет назад

    great speaker with knowhow and great video
    the informations are very useful in the daily use of javascript...

  • @sing-tech
    @sing-tech 9 лет назад +3

    So amazing, the best tech talk I've seen.

  • @KPSrinivasa
    @KPSrinivasa 14 лет назад

    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"

  • @s3340985
    @s3340985 11 лет назад

    Great suggestions for the loops! Would've never thought to flip them if it wasn't for this presentation

  • @krone01
    @krone01 12 лет назад

    absolutely loved this video very insightful and he speaks in a manner which makes it very easy to understand

  • @DarrenChen
    @DarrenChen 15 лет назад

    as a newb web developer, I appreciate this presentation

  • @graczmisiek
    @graczmisiek 11 лет назад

    Valuable tips and unique sense of humour.

  • @vagabond268
    @vagabond268 10 лет назад

    Very helpful insight of the internals, i liked the way Nicholas explained scope chain and reflows. Thank you.

  • @aliancemd
    @aliancemd 11 лет назад

    That's the thing. Now with JIT compilers, how relevant is this?
    The DOM thing for sure didn't change but the rest...
    For example, the depth navigation should not be a problem with a compiler now...
    I am interested too...

  • @Hex72
    @Hex72 11 лет назад

    Awesome talk, a great insight into the caveats of JavaScript. I have so many loops to optimise in my game now...

  • @neoreloading
    @neoreloading 11 лет назад

    Excellent Session!... kudos.. keep them coming :)

  • @RickBeacham
    @RickBeacham 12 лет назад

    Good presentation. Learned alot.

  • @stevenmildred55
    @stevenmildred55 11 лет назад

    Great suggestions, didn't really think of these ideas to speed up JS.

  • @EricPeeters91
    @EricPeeters91 11 лет назад

    @34:05
    addChild is supposed to be appendChild?

  • @matchflixCH
    @matchflixCH 10 лет назад

    Are the main points in the summary at 46:00 still valid today?

  • @hertzbergny
    @hertzbergny 11 лет назад

    the sick part is that this was 4 years ago, showing a chart with Chrome 3 beta, and I'm using Chrome 29 as we speak.

  • @karolbielen2090
    @karolbielen2090 6 месяцев назад

    15 years ago. Now just one epoch, but several at least. Is this video still viable?

  • @thirdimage
    @thirdimage 15 лет назад

    ...or as I like to call it, THE DOM!!!!
    I totally cracked up when he said that.
    Really good tips Zakas. :)
    Now I want to create a Javascript video game called, "THE DOM!".

  • @leviroberts3085
    @leviroberts3085 11 лет назад +5

    Premature optimization is still a big thing. You generally don't have to worry about these things most of the time. Only optimize when you need to. Usually disk I/O, network, etc are the bottlenecks you have to worry about most of the time.

    • @steveburrus5526
      @steveburrus5526 9 лет назад

      +Levi Roberts you don't think that functioins and their scopes play into how fast Javascript is for web develoment?

    • @leviroberts3085
      @leviroberts3085 9 лет назад +1

      Steve Burrus I didn't say that. What I was trying to say is that it's unnecessary for developers to spend too much valuable time and company resources optimizing things before they are even a problem. Most of the time, smaller optimizations never actually become a problem.
      It's one of those things that's bitten several seasoned developers time and time again, me included. It's best to set up a monitoring solution with logs to find out where/what your team needs to focus on the most - then work outward from there. Just don't let it become a problem first.
      I'll repeat myself once more for clarity. Most generally disk I/O (including databases), network, and other dependencies are usually the bottlenecks that hit first in sever-side apps like Javascript (nodejs) and Go. Focus on minimizing those first before worrying about the functional aspects in your application layer.

    • @steveburrus5526
      @steveburrus5526 9 лет назад +1

      +Levi Roberts POkay Levi I will defer to you. You a re probably more of an expert about this than I am. I just know a little about JavaScript myself.

  • @mururoa7024
    @mururoa7024 11 лет назад

    How much of this is still relevant with the latest JS engines? (Chrome 26, IE10, FF19...)

  • @wesw02
    @wesw02 13 лет назад

    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.

  • @VicVlasenko
    @VicVlasenko 12 лет назад

    good job.
    51:30
    if there are a lot of global variables (I saw >200 in some apps) it works 2-3 times faster, when grouping them into an object

  • @FiddlingOnTheRoof
    @FiddlingOnTheRoof 11 лет назад

    I knew about scope chain and the need to always declare var to stay local (otherwise it becomes a global variable and that's SLOW [not to mention being at greater risk of collision!]), but there's a LOT in this that I never knew about!

  • @drewhjava
    @drewhjava 12 лет назад

    It's the web man. Last javascript language update was in 1999(not including the recent one). People are still using 12 year old browsers and 10 year old operating systems. Everything is relavant.

  • @SudeepMakwana
    @SudeepMakwana 11 лет назад

    You R One Of Best @Zakas.... i m your Fan ....

  • @arbindvishwakarma722
    @arbindvishwakarma722 10 лет назад

    Thanks Nicholas for giving such a important key aspect of javascript.

  • @deeroks1
    @deeroks1 12 лет назад

    wish more sites would use this insight.

  • @marcky4eva
    @marcky4eva 12 лет назад

    Is the guy asking the question at 53:30 Robert himler?

  • @LVEB001
    @LVEB001 15 лет назад

    OpenOffice is mostly written in C++ though.

  • @RickBeacham
    @RickBeacham 12 лет назад

    Hey where did you get that profile picture from? I recognize it from another site.

  • @yahikouzumaki4955
    @yahikouzumaki4955 11 лет назад

    Really interesting speech.
    I need to optimize my DOM accesses now.

  • @flowewritharoma
    @flowewritharoma 13 лет назад

    pretty programatic lecturing talk! thanks through communicating bilateral intelligence.

  • @raduandrei1289
    @raduandrei1289 11 лет назад

    Very informative talk!

  • @clivend
    @clivend 7 лет назад

    do you think this is still actual in 2018 somehow?

  • @Hemo1231000
    @Hemo1231000 14 лет назад

    Thanks....good video

  • @warwound
    @warwound 15 лет назад

    Great stuff!!

  • @neocoders
    @neocoders 13 лет назад

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

  • @yuanwang5253
    @yuanwang5253 11 лет назад

    Cool, Very Informative.

  • @ramsp35
    @ramsp35 11 лет назад

    Cool.. Thanks. That helped me a lot.

  • @Blinkwing
    @Blinkwing 13 лет назад

    42:00 At first I thought it was Steve Wozniak

  • @TimVerweij
    @TimVerweij 15 лет назад

    The DOM was great.

  • @PuercoPop
    @PuercoPop 15 лет назад

    The DOM!!! I laughed so don't feel bad!

  • @whatnow1204
    @whatnow1204 12 лет назад

    @MrDotMontage Buy a book. It's very much worth it. You can't really experience the good and bad parts in javascript from these tutorials. Books is the way to go.

  • @BilalHijab
    @BilalHijab 15 лет назад

    will this speed up my runescape

  • @khajisavva
    @khajisavva 14 лет назад

    @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!

  • @ron7416
    @ron7416 12 лет назад

    Nice.

  • @thirdimage
    @thirdimage 15 лет назад

    Java programs are the slowest most resource hungry programs out there. Not to mention, Java's virtual machine tends to bog down after running for awhile on your server. Python doesn't seem have these problems.

  • @theimben
    @theimben 15 лет назад

    Yes

  • @nathan87
    @nathan87 15 лет назад

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

  • @Cossner
    @Cossner 12 лет назад

    THE DOOOOOOM

  • @folding12
    @folding12 15 лет назад

    Java and JavaScript are not the same thing. Other than that, this comment is completely valid. :\

  • @EdmundDipple
    @EdmundDipple 14 лет назад

    THE DOM

  • @jamesgreene2061
    @jamesgreene2061 14 лет назад

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

  • @hertzbergny
    @hertzbergny 11 лет назад

    scratch that. Chrome 2 beta.

  • @robson_sousa
    @robson_sousa 10 месяцев назад

    Today is February 9th, 2024.

  • @Rayden150
    @Rayden150 14 лет назад

    8 people dont understand javascript...