Kqh3rozua4xgqb6kgigs
SkillsCast

We Need to Talk about the Main Thread

10th July 2019 in London at Business Design Centre

There are 71 other SkillsCasts available from FullStack London 2019 - The Conference on JavaScript, Node & Internet of Things

Please log in to watch this conference skillscast.

Https s3.amazonaws.com prod.tracker2 resource 41088130 skillsmatter conference skillscast o9nohu

JavaScript is known for its single threaded nature; in the browser this means much of your code you write as developers runs on the same thread. This includes everything from input handlers, to fetch requests to updating the DOM. This is a lot of things to keep up with!

Thankfully the JavaScript event loop model and the general asynchronous nature of features like callbacks and Promises allow the browser to do work whilst also interleaving updates to the viewport for your users.

This is a good thing to know, but when you write code these concepts are not always at the front of our mind. As developers you want to have snappy user interfaces and good provide smooth experiences. But how often do you ask, what is the effect of the code you just wrote? Will it block the user? How do you deal with this?

In this talk James will take a high level look at the main thread and event loop, and then explore how you schedule work in ways that best fit the journeys of our users.

YOU MAY ALSO LIKE:

Thanks to our sponsors

We Need to Talk about the Main Thread

James Milner

James is a fullstack software developer with a history of building immersive web applications with both corporates and startups.

SkillsCast

Please log in to watch this conference skillscast.

Https s3.amazonaws.com prod.tracker2 resource 41088130 skillsmatter conference skillscast o9nohu

JavaScript is known for its single threaded nature; in the browser this means much of your code you write as developers runs on the same thread. This includes everything from input handlers, to fetch requests to updating the DOM. This is a lot of things to keep up with!

Thankfully the JavaScript event loop model and the general asynchronous nature of features like callbacks and Promises allow the browser to do work whilst also interleaving updates to the viewport for your users.

This is a good thing to know, but when you write code these concepts are not always at the front of our mind. As developers you want to have snappy user interfaces and good provide smooth experiences. But how often do you ask, what is the effect of the code you just wrote? Will it block the user? How do you deal with this?

In this talk James will take a high level look at the main thread and event loop, and then explore how you schedule work in ways that best fit the journeys of our users.

YOU MAY ALSO LIKE:

Thanks to our sponsors

About the Speaker

We Need to Talk about the Main Thread

James Milner

James is a fullstack software developer with a history of building immersive web applications with both corporates and startups.

Photos