# Worker waiting about 10 seconds?!

**URL:** <https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838>\
**Category:** Help\
**Created:** [February 22, 2024, 3:06pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838 "2024-02-22T15:06:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 22, 2024, 3:06pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/1 "2024-02-22T15:06:57Z")

</div>

My Observable often is very slow – loading and rendering a notebook takes 15s. I cannot figure out why. I can see `worker-` being ‘busy’ (spinning wheel). Inspection reveals that it seems to be waiting – see green bars below. On what, exactly?

What can I do to get rid of those very long waiting times? Any suggestions greatly appreciated.

Sorted by occurrence:

 ![Screenshot 2024-02-22 at 15.56.44](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/5/5761da4b776bb405e81cd6eba5ef111f97945151.jpeg)

Sorted by (elapsed) Time:

 ![Screenshot 2024-02-22 at 16.05.01](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/c/c0b2f166d5720839e9bf5f80e6bc51a711d2eba5.jpeg)

I know I’m not running state of the art iMac (late 2015), OS (Monterey, 12.7.3), and Safari (17.3.1). But I was snappy a couple of macOSes back.

---

<div class="post-metadata">

**Author:** ![mythmon](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mythmon/32/8504_2.png) [@mythmon](https://talk.observablehq.com/u/mythmon)\
**Post date:** [February 22, 2024, 4:09pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/2 "2024-02-22T16:09:42Z")

</div>

Very curious. I associate that wait time with “waiting for remote server to start the connection”. On the other hand, it says it was served from “(memory)”, which makes me think there isn’t a server involved.

Can you save this view as a HAR file with the top right “Export” button and send it to me? It might contain sensitive details, so it would probably be best to email it to me directly at [michael@observablehq.com](mailto:michael@observablehq.com). This will let me dig in a bit more than a screenshot of the network panel.

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 22, 2024, 4:22pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/3 "2024-02-22T16:22:05Z")

</div>

Thanks for your quick response, Michael!

2MB HAR file sent via e-mail.

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 22, 2024, 4:27pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/4 "2024-02-22T16:27:11Z")

</div>

For what it’s worth: in the Timelines \> Frames view, elapsed time of Frame 73 is 6.77s, and Frame 98 is 5.08s. When opened, both show gazillions of Animation Frames fired.

---

<div class="post-metadata">

**Author:** ![mythmon](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mythmon/32/8504_2.png) [@mythmon](https://talk.observablehq.com/u/mythmon)\
**Post date:** [February 22, 2024, 11:21pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/5 "2024-02-22T23:21:22Z")

</div>

Thanks for sending that along. Unfortunately I wasn’t able to find anything more from inspecting it. Is this something that is repeatable for you, or does it only happen sometimes?

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 10:14am UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/6 "2024-02-23T10:14:57Z")

</div>

It is continuous, unfortunately.

I suspect Apple’s planned obsolescence of older platforms. In the ‘old days’, it all was blazingly fast.

Thanks for looking into it.

BTW, how can I find out what ‘worker’ is waiting on? Any hints?

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 10:44am UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/7 "2024-02-23T10:44:15Z")

</div>

BTW, Tried with Arc browser just now: 6s from reload to rendered page.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 23, 2024, 12:12pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/8 "2024-02-23T12:12:16Z")

</div>

> [@Martien](#):
>
> But I was snappy a couple of macOSes back.

Did you have the Bear Notes integration installed back then, too?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/6/6350a47aa23416f7d2719b262849b2c488d97965.png)

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 12:12pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/9 "2024-02-23T12:12:50Z")

</div>

As a matter of fact, **yes**.

I implied your suggestion and deactivated _all_ extensions, to no avail.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 23, 2024, 12:19pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/10 "2024-02-23T12:19:21Z")

</div>

Could you share a recording of the behavior with the notebook visible and the network tab and JS console open (please set it show all levels, including verbose)?

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 12:23pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/11 "2024-02-23T12:23:48Z")

</div>

Do you mean a screen recording?

Also, I don’t know how to make two tabs (both Network and Console) visible at the same time.

Share my screen, maybe?

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 23, 2024, 12:28pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/12 "2024-02-23T12:28:02Z")

</div>

You can toggle the console with Escape (you may need to tap it twice the first time).

Here is an example layout that shows the notebook, network tab sorted by time descending, and the console with all log levels:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/4/438a95c7335d04ca50cccba35bdfe4fb03274851.jpeg)

Note that for the notebook we only need to see when the UI loads, and when the notebook contents.

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 12:31pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/13 "2024-02-23T12:31:37Z")

</div>

Wow. Learned something again. Thanks.

 ![Screenshot 2024-02-23 at 13.30.59](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/b/bcac7dfe86180b002a46e43fca9e0a8db1fef14c.jpeg)

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 12:56pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/14 "2024-02-23T12:56:08Z")

</div>

Here you go.

 ![Screenshot 2024-02-23 at 13.55.26](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/6/6d5518cb42b045d76dc05433961210e683b89203.jpeg)

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 23, 2024, 1:05pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/15 "2024-02-23T13:05:22Z")

</div>

Did you mean to post a screenshot instead of a video? 🙂 (also, please sort the network tab by Time descending)

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 1:39pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/16 "2024-02-23T13:39:36Z")

</div>

I was not sure. I now assume you want a video. I’ve prepped one. It’s 47MB. You can pick it up from [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-jxcvfpkEAQ)

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 23, 2024, 1:46pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/17 "2024-02-23T13:46:55Z")

</div>

Thanks! And do you only see this happen on your own notebooks? And only while you’re logged in or also logged out?

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 1:51pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/18 "2024-02-23T13:51:47Z")

</div>

I see this on my notebooks (haven’t tested it on others yet), while logged in, logged out, and anonymous (private window). Also happens when logged in as other user (on same system).

In the log, I see two (Observable) workers, each waiting for 10 seconds.

My internet speed is ↓ 111.0 Mbit/s ↑ 33.0 Mbit/s.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 23, 2024, 2:00pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/19 "2024-02-23T14:00:57Z")

</div>

Could you share the HAR file with me as well ([fabian@observablehq.com](mailto:fabian@observablehq.com))? I’d like to take a look at the response headers.

And could you verify that you see the same issue in notebooks from other workspaces?

And does it happen in Chrome or Firefox, too?

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 23, 2024, 2:08pm UTC](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838/21 "2024-02-23T14:08:49Z")

</div>

Chrome and FF: all done in ~3s, albeit a bit jaggy; no smooth experience.

It strengthens my suspicion towards Apple.

[Next page](https://talk.observablehq.com/t/worker-waiting-about-10-seconds/8838.md?page=2)
