diff --git a/src/powerpoint/slideFilmstripController.ts b/src/powerpoint/slideFilmstripController.ts index 4dcf73b..1ec0f09 100644 --- a/src/powerpoint/slideFilmstripController.ts +++ b/src/powerpoint/slideFilmstripController.ts @@ -320,9 +320,7 @@ export class SlideFilmstripController { const started = performance.now(); const sorted = [...indices].sort((left, right) => left - right); - for (const index of sorted) { - await this.renderThumbnailAt(index); - } + await Promise.all(sorted.map((index) => this.renderThumbnailAt(index))); debugLog('render', 'PowerPoint thumbnail refresh completed', { indices: sorted, ms: Math.round(performance.now() - started)