~/talk

Task scheduler: don’t freeze the tab when opening a page

TalkinRussianat HolyJS 2022 Autumn · 2022-11-10..11-20· [web-performance]
links:none on file
slides:none on file

Describes Yandex’s task scheduler used to initialize search-page scripts without blocking the UI, reducing Total Blocking Time (TBT). Explains the problem of large TBT on page load (independent of frameworks) and shows how to lower TBT using a scheduler approach while keeping other metrics intact, plus guidance for implementing the same technique.

AI-written summary · about

  1. 0:00Welcome
  2. 2:11Speaker background
  3. 3:37Event Loop performance
  4. 9:54Long Tasks on JS init
  5. 12:06Legacy search init
  6. 16:30Task splitting with setTimeout
  7. 21:27setTimeout delays specifics
  8. 24:40Smart scheduler: merging & prioritization
  9. 29:14postMessage vs setTimeout
  10. 34:36postMessage optimization with MessageChannel
  11. 38:36Existing init speed solutions
  12. 44:23React updates & native APIs
  13. 49:40Native schedulers in Chrome/Firefox
  14. 50:00Conclusion & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.