# HTML template won't update every time

**URL:** <https://casparcgforum.org/t/html-template-wont-update-every-time/4880>\
**Category:** FAQ\
**Created:** [May 21, 2022, 4:49pm UTC](https://casparcgforum.org/t/html-template-wont-update-every-time/4880 "2022-05-21T16:49:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcalado](https://casparcgforum.org/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jcalado](https://casparcgforum.org/u/jcalado)\
**Post date:** [May 21, 2022, 4:49pm UTC](https://casparcgforum.org/t/html-template-wont-update-every-time/4880/1 "2022-05-21T16:49:59Z")

</div>

Here’s the situation:

1. Load up an HTML template with `CG 1-2 ADD 1 "TEMPLATE" 1 "{\"lyrics\":\"text\"}"`
2. Update said template with new data: `CG 1-2 UPDATE 1 "{\"lyrics\":\"new_text\"}"`
3. Data should be updated on the page via `document.getElementById('id').innerHTML = data`

Issues begin:  
Command returns `202 CG OK` but on air graphics do not change.  
Sending subsequent CG UPDATE commands will update the data just fine.

Debugging I have done thus far:  
Inspecting the template with a remote console shows data has indeed changed on the HTML page.  
HTML also spits out console output to caspar log indicating it has received the correct data.

Any idea what could be happening?  
Thanks

---

<div class="post-metadata">

**Author:** ![Alfredo3140](https://casparcgforum.org/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@Alfredo3140](https://casparcgforum.org/u/Alfredo3140)\
**Post date:** [May 22, 2022, 11:53pm UTC](https://casparcgforum.org/t/html-template-wont-update-every-time/4880/2 "2022-05-22T23:53:42Z")

</div>

Change in the config file enable-gpu to false. I don’t now the reason why but at least it worked for me.

```auto
<html>
<enable-gpu>false</enable-gpu>
</html>

```

---

<div class="post-metadata">

**Author:** ![jcalado](https://casparcgforum.org/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jcalado](https://casparcgforum.org/u/jcalado)\
**Post date:** [May 30, 2022, 7:38am UTC](https://casparcgforum.org/t/html-template-wont-update-every-time/4880/3 "2022-05-30T07:38:44Z")

</div>

This seems to have fixed it. When did this start happening? I hadn’t noticed it so far.  
Are you monitoring with the screen, a decklink, ndi?

---

<div class="post-metadata">

**Author:** ![Alfredo3140](https://casparcgforum.org/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@Alfredo3140](https://casparcgforum.org/u/Alfredo3140)\
**Post date:** [May 30, 2022, 9:03am UTC](https://casparcgforum.org/t/html-template-wont-update-every-time/4880/4 "2022-05-30T09:03:07Z")

</div>

I saw this began in december, when I got an upgrade to Windows 11 it where a total disaster.

Decklink and Screen consumer don’t work. I haven’t tested NDI.

For me it took like 10-20 minutes in to the broadcast until the problem started. When I was back home I couldn’t get the same error I had this issue some weeks. But after like 20 minutes simulation of a broadcast I managed to reproduce the error.
