Web Workers: The Secret to Faster Web Apps You’re Not Using

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ธ.ค. 2024

ความคิดเห็น • 16

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  6 วันที่ผ่านมา

    Download the FREE PDF Now. Pass Your Javascript Interview with Confidence! ➡ monsterlessons-academy.com/newsletter_subscribers/javascript_interview?

  • @flywheel56
    @flywheel56 3 วันที่ผ่านมา

    Well done! Best wishes for the new year.

  • @stanislavdomanskyi3613
    @stanislavdomanskyi3613 วันที่ผ่านมา

    Cool explanation! Thank you

  • @PauloSantos-yu1tn
    @PauloSantos-yu1tn 6 วันที่ผ่านมา +2

    Had an application that was drastically improved with a simple webworker.

  • @emmanuelkolade2055
    @emmanuelkolade2055 2 วันที่ผ่านมา

    How does this differ from using Promises?

    • @emmanuelkolade2055
      @emmanuelkolade2055 2 วันที่ผ่านมา

      I mean, shouldn't using a promise or an asynchronous function solve this issue?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  วันที่ผ่านมา

      Promises do not offload computationally intensive tasks; they only provide a way to wait for an operation to complete asynchronously.
      Heavy operations (e.g., image processing, large data computations) will still block the main thread, causing UI lag or unresponsiveness.

    • @emmanuelkolade2055
      @emmanuelkolade2055 17 ชั่วโมงที่ผ่านมา

      @@MonsterlessonsAcademy Oh okay. I think I get it. Okay so
      1. Can this be used on the server side as well?
      2. Is it similar to multi threading on Java?

  • @m12652
    @m12652 5 วันที่ผ่านมา +1

    2:11 Agreed, but... if you have a big feature rich app and are paying for hosting by the processor tick etc. isn't it cheaper to push as much of the processing onto the client as possible? Particularly for heavy use applications.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  4 วันที่ผ่านมา

      Not really. The goal is to make your app fast and comfortable for user to use. This usually means improving perforamance as much as possible. If it is possible to do something on backend I will always do it there instead of the client browser.

  • @dansnel
    @dansnel 5 วันที่ผ่านมา +1

    Have a happy new year!!!

  • @adarshsingh3012
    @adarshsingh3012 6 วันที่ผ่านมา

    1st