# Does javascript execute & preview directly in Elements preview?

**URL:** <https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528>\
**Category:** Elements\
**Created:** [May 12, 2025, 8:44pm UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528 "2025-05-12T20:44:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveMac](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DaveMac](https://forums.realmacsoftware.com/u/DaveMac)\
**Post date:** [May 12, 2025, 8:44pm UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528/1 "2025-05-12T20:44:42Z")

</div>

Does javascript execute & preview directly in app or just when browser previewed?

If it works in app are there any videos that show this occurring? If only in browser will this always be the case and never change for in app preview?

Thanks

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [May 13, 2025, 6:45am UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528/2 "2025-05-13T06:45:23Z")

</div>

Javascript is only executed in the browser — no javascript is executed inside of the [Elements](https://elementsapp.io/) editor.

I can’t say it’ll always be that way, but we don’t currently have any plans to change this.

---

<div class="post-metadata">

**Author:** ![DaveMac](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DaveMac](https://forums.realmacsoftware.com/u/DaveMac)\
**Post date:** [May 13, 2025, 11:18am UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528/3 "2025-05-13T11:18:18Z")

</div>

thanks for confirming

---

<div class="post-metadata">

**Author:** ![DaveMac](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DaveMac](https://forums.realmacsoftware.com/u/DaveMac)\
**Post date:** [May 13, 2025, 2:13pm UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528/4 "2025-05-13T14:13:40Z")

</div>

Is the [browser preview](https://www.youtube.com/watch?v=gDg3POK920s) live synced with Element 's so changes in Element 's are realtime updated in the browser? Sorry having trouble finding this information on my own.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [May 13, 2025, 2:59pm UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528/5 "2025-05-13T14:59:39Z")

</div>

Yes, it’s synced, but you need to click back on the browser to make the refresh happen.

You’ll also want to make sure this option is switched on in the Preferences:

 ![CleanShot 2025-05-13 at 3 .57.34@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/3/f/3fb71ded6a9ad3aa7084bfb8990c3d7d5dba92cd.jpeg)

---

<div class="post-metadata">

**Author:** ![DaveMac](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DaveMac](https://forums.realmacsoftware.com/u/DaveMac)\
**Post date:** [May 13, 2025, 3:18pm UTC](https://forums.realmacsoftware.com/t/does-javascript-execute-preview-directly-in-elements-preview/47528/6 "2025-05-13T15:18:20Z")

</div>

Ok good to know thanks
