# Progress Bar not Updating

**URL:** <https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798>\
**Category:** UXP Plugin API\
**Tags:** ui, javascript\
**Created:** [April 13, 2021, 8:13pm UTC](https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798 "2021-04-13T20:13:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmendes76](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/lmendes76/32/1329_2.png) [@lmendes76](https://forums.creativeclouddeveloper.com/u/lmendes76)\
**Post date:** [April 13, 2021, 8:13pm UTC](https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798/1 "2021-04-13T20:13:39Z")

</div>

Has anyone successfully implemented a progress bar? I can only get the update to happen at the end of the script it seems. No matter where I put the incrementing code. I see the log updates as expected, but no redraw until the script is complete. I’m missing something completely I guess?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [April 14, 2021, 3:39pm UTC](https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798/2 "2021-04-14T15:39:18Z")

</div>

It would help to see some code.

Depending on what your code is doing, it’s possible that Ps hasn’t actually had a chance yet to update the UI. If your JS doesn’t yield for a tick or two, the UI won’t have a chance to update.

---

<div class="post-metadata">

**Author:** ![hauke354](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@hauke354](https://forums.creativeclouddeveloper.com/u/hauke354)\
**Post date:** [February 2, 2026, 8:38am UTC](https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798/3 "2026-02-02T08:38:36Z")

</div>

It’s a problem, see [Progress bar for InDesign interactions](https://forums.creativeclouddeveloper.com/t/progress-bar-for-indesign-interactions/7701) for a discussion of possible solutions.

---

<div class="post-metadata">

**Author:** ![Kayrock](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kayrock/32/4748_2.png) [@Kayrock](https://forums.creativeclouddeveloper.com/u/Kayrock)\
**Post date:** [February 6, 2026, 6:04pm UTC](https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798/4 "2026-02-06T18:04:14Z")

</div>

Yes, I use it. Have you tried this after you update the value?

```auto
// Yield to allow UI updates
await new Promise(resolve => setTimeout(resolve, 0));

```

---

<div class="post-metadata">

**Author:** ![hauke354](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@hauke354](https://forums.creativeclouddeveloper.com/u/hauke354)\
**Post date:** [May 12, 2026, 2:00pm UTC](https://forums.creativeclouddeveloper.com/t/progress-bar-not-updating/2798/5 "2026-05-12T14:00:04Z")

</div>

Yes, I use setTimeout (and am very patient, giving it 1 ms 😉). That works partially, but I haven’t found out in which circumstances it works and when not.
