Transitioning to modern JavaScript

preview_player
Показать описание
Over 90% of web traffic comes from browsers that support modern JavaScript, yet most websites ship legacy syntax in order to support a small number of very old browsers.

We now have the ability to deliver modern and legacy code to browsers based on what they support, but this doesn't extend to the large amount of dependency code in our applications. Our dependencies are still published as verbose legacy syntax in order to support the lowest common denominator of browsers today.

This talk explains how legacy dependency code is one of the biggest performance problems on the web today, and what steps we can all take address it.

Resources:

Speakers: Houssein Djirdeh, Jason Miller

#chromedevsummit #chrome #javascript

event: Chrome Dev Summit 2020; re_ty: Publish; product: Chrome - General; fullname: Jason Miller;
Рекомендации по теме
Комментарии
Автор

Nice! This video can be also called "The cost of IE11!"

milanlucansky
Автор

I've found generators to be most useful when writing code for Node; in cases where you are slowly going trough a big dataset that mutates during the operation.

Автор

That was super interesting, would love to see more videos like this

dyssus
Автор

you are a very good team. good presentation, good talk.

nice job guys! Thanks !👍

kolavithonduraski
Автор

Thank you for this explanation of the benefits of transitioning from es5 to 'modern javascript'. I think I understand why one of my projects ran slower than expected in a certain edge case. I set the target to es5 and it used the transpiled polyfills instead of the modern code.

megabyte
Автор

Great talk! Really liked the way you explained things and provided useful and easy solutions

georgekrax
Автор

The ONE time I had to use a generator was to do the thing in the example 😅

MobiusCoin
Автор

What about the bandwidth consumption that this video is generating, how many trees did you plant?

ddrweb_
Автор

Lucky to be able to.

I just finished clearing our codebase of IE workarounds and polyfills today.

TesterAnimal
Автор

This was a well presented session. Thanks folks!

vikramadityakukreja
Автор

Now that Google controls the entire browser market share (Mozilla being killed, Edge & Brave running on Chromium), what's stopping the browser from supporting all the necessary APIs to bring gRPC to browsers natively (ditch the need for gRPC-Web proxies)? The W3C not cooperating?

alleung
Автор

Its really weird to hear my name on Google Chrome dev haha
Houssein great content and awesome name dude!

hnasr
Автор

Really great talk, very informative thanks guy. Well, looks like estimator dev got pulled offline real quick though 😢

levelsofself
Автор

Did anyone create a webpack configuration, referencing the last scheme, building both modern and legacy bundles?

jadedtheredone
Автор

What about the CSS part? Shipping modern vs legacy CSS?

shubitoxX
Автор

Modern for-loops suffer from low performance. The same is true for mixins vs classes. If we want people to adopt new features, we should provide better "runtime-performance" as well. Size != Runtime performance.

nivo
Автор

Love the video guys. Very descriptive and super advanced.

emrm
Автор

Where do I learn this => when I learned javascript years back it wasn't there?

NarayanaTheUltimate
Автор

Is there a link to the data for the carbon cost of old javascript?

kathrinayer
Автор

This is really useful 👌 and we will start implementing these modern tranpile which is into ES2017

tptyuvi