Artwork

内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

Hasty Treat - JavaScript Event Buzzwords — Sync, Concurrent, Defer, Blocking, Workers

25:02
 
分享
 

Manage episode 296727329 series 1469447
内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In this Hasty Treat, Scott and Wes define some JavaScript Buzzwords and talk about what they mean!

Freshbooks - Sponsor

Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

Show Notes

03:24 - Synchronous / Async

05:23 - Multi-threaded

  • JavaScript has a single “main thread”
  • But you can have more threads with web workers

08:12 - Blocking

  • JavaScript can stop other things on the page from running
  • A script tag can block HTML from being parsed
  • Most stuff in JavaScript is non-blocking
  • Node.js write to filesystem can be blocking

10:27 - Concurrent + Parallel

13:22 - Consecutive / Waterfall

  • One after another

13:48 - Callback

17:56 - Script Tag Async + Defer

  • Doesn’t block other content
  • Runs when ready - doesn’t care about DOMcontentLoaded
  • Wait until the page is loaded before running
  • If the script tag is above content, don’t wait for it
  • Good for things that aren’t called on page load

21:54 - Lazy

  • Load it in later - maybe when it’s scrolled into view, or as needed
  • Not mission-critical
Tweet us your tasty treats!
  continue reading

761集单集

Artwork
icon分享
 
Manage episode 296727329 series 1469447
内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In this Hasty Treat, Scott and Wes define some JavaScript Buzzwords and talk about what they mean!

Freshbooks - Sponsor

Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

Show Notes

03:24 - Synchronous / Async

05:23 - Multi-threaded

  • JavaScript has a single “main thread”
  • But you can have more threads with web workers

08:12 - Blocking

  • JavaScript can stop other things on the page from running
  • A script tag can block HTML from being parsed
  • Most stuff in JavaScript is non-blocking
  • Node.js write to filesystem can be blocking

10:27 - Concurrent + Parallel

13:22 - Consecutive / Waterfall

  • One after another

13:48 - Callback

17:56 - Script Tag Async + Defer

  • Doesn’t block other content
  • Runs when ready - doesn’t care about DOMcontentLoaded
  • Wait until the page is loaded before running
  • If the script tag is above content, don’t wait for it
  • Good for things that aren’t called on page load

21:54 - Lazy

  • Load it in later - maybe when it’s scrolled into view, or as needed
  • Not mission-critical
Tweet us your tasty treats!
  continue reading

761集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南