# 26.05 (Windows): card renders blank/white when template runs JS – esp. window.speechSynthesis; audio plays but page never paints

**URL:** <https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180>\
**Category:** Card Design\
**Created:** [June 22, 2026, 6:06am UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180 "2026-06-22T06:06:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttrafford](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ttrafford/32/34224_2.png) [@ttrafford](https://forums.ankiweb.net/u/ttrafford)\
**Post date:** [June 22, 2026, 6:06am UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/1 "2026-06-22T06:06:24Z")

</div>

Anki: 26.05, Windows, Qt6 (confirm via Help → About)  
AnkiMobile (iPhone): NOT affected  
Summary:  
After updating to 26.05, cards whose templates run certain JavaScript render as a  
blank white card in reviewer/preview/editor. The clearest case: any template calling  
window.speechSynthesis.cancel() / .speak() – the TTS audio plays, but the HTML never  
paints. DOM scripts that run on the back (querySelectorAll + scrollHeight, etc.) also  
appear to blank the card. Removing all and using native {{tts}} renders fine.  
Note types with no scripts are unaffected. Switching video driver  
(software/OpenGL/ANGLE) does not help.  
Minimal reproduction:

1. New Basic note, any text.

2. Front template:

```auto
   <div>hello</div>
     <script>window.speechSynthesis.speak(new SpeechSynthesisUtterance("test"));</script>

```

1. Preview/review → blank white (audio plays). Remove the → “hello” renders.  
Workaround: replace JS speechSynthesis with native {{tts lang:Field}}; avoid card scripts.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [June 22, 2026, 6:31am UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/2 "2026-06-22T06:31:42Z")

</div>

> Because Javascript is an advanced feature and so many things can go wrong, Javascript functionality is provided without any support or warranty.  
> [Styling & HTML - Anki Manual](https://docs.ankiweb.net/templates/styling.html#javascript)

I moved your post to the #Anki > Card Design category.

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [June 22, 2026, 7:24am UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/3 "2026-06-22T07:24:54Z")

</div>

> [@ttrafford](#):
>
> Minimal reproduction:
> 
> 1. New Basic note, any text.
> 
> 2. Front template:
> 
> ```auto
> <div>hello</div>
> <script>window.speechSynthesis.speak(new SpeechSynthesisUtterance("test"));</script>
> 
> ```
> 
> 1. Preview/review → blank white (audio plays). Remove the → “hello” renders.

Isn’t reproduced for me with any of the video driver options (Anki 26.05 win11).

* * *

You might want to try another workaround by calling the speech synthesis function on some timeout to avoid it affecting card display or, at the very least, to check if the rendering issue is indeed triggered when the TTS is called.

---

<div class="post-metadata">

**Author:** ![ttrafford](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ttrafford/32/34224_2.png) [@ttrafford](https://forums.ankiweb.net/u/ttrafford)\
**Post date:** [June 22, 2026, 2:17pm UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/4 "2026-06-22T14:17:16Z")

</div>

**Update – the real cause is color emoji, not JavaScript**

Thanks for testing – your repro failure made me bisect properly, and my original framing was wrong: **it’s color-emoji glyphs, not `speechSynthesis`/JS.**

A styled card (e.g. `border-radius` + `box-shadow`) containing a color emoji like 🔊 renders **blank white on first paint – with no `<script>` at all.** Replace the emoji with a plain letter or inline SVG and it renders every time. Deferred `speak()` is fine; the emoji is the trigger.

**Minimal repro:** Basic card front = a styled div containing any color emoji → blank; remove/replace the emoji → renders.

**Env:** Anki 26.05, Qt6, Win11; GPU **Intel HD Graphics + NVIDIA GeForce 820M** (old drivers, 2016/2018). Reproduces across all video-driver backends – looks like a GPU-specific color-emoji texture path in Qt WebEngine, which is likely why you couldn’t reproduce it. iPhone/AnkiMobile unaffected.

**Fix:** replace template emoji with inline SVG icons / text – all cards render front + back again.

Is this a known Qt6 WebEngine color-emoji bug on older GPUs, and is there an Anki-side compositing/driver flag that avoids it without editing templates?

---

<div class="post-metadata">

**Author:** ![ttrafford](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ttrafford/32/34224_2.png) [@ttrafford](https://forums.ankiweb.net/u/ttrafford)\
**Post date:** [June 23, 2026, 7:48pm UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/5 "2026-06-23T19:48:10Z")

</div>

can you please test if you would have the same issue?

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [June 23, 2026, 8:43pm UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/6 "2026-06-23T20:43:57Z")

</div>

It still works just fine for me with any combination of emojis, borders, box-shadows and filters, but I have a different GPU.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [July 23, 2026, 8:43pm UTC](https://forums.ankiweb.net/t/26-05-windows-card-renders-blank-white-when-template-runs-js-esp-window-speechsynthesis-audio-plays-but-page-never-paints/70180/7 "2026-07-23T20:43:58Z")

</div>

Closed on July 23, 2026, 8:43pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
