# Better to use Javascript Column or External Code for App Speed?

**URL:** <https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424>\
**Category:** Ask for Help\
**Created:** [October 24, 2022, 2:59pm UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424 "2022-10-24T14:59:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bru/32/37841_2.png) [@bru](https://community.glideapps.com/u/bru)\
**Post date:** [October 24, 2022, 2:59pm UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/1 "2022-10-24T14:59:54Z")

</div>

Hi, I’m curious whether using one or the other approaches for javascript (column vs externally hosted code) has an effect on overall app speed and/or speed of the calculations for the column itself? Thank you so much for any input!

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [October 24, 2022, 3:01pm UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/2 "2022-10-24T15:01:46Z")

</div>

without testing, logic will suggest that external will be slower

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 24, 2022, 3:12pm UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/3 "2022-10-24T15:12:19Z")

</div>

In my experience, JavaScript is faster because it runs locally, so any network latency is eliminated.

As a general rule, I only use an external code column if it’s something I need a lot. ie. it’s easier to re-use than copy/pasting the same JavaScript code over and over again.

---

<div class="post-metadata">

**Author:** ![ichilddev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ichilddev/32/45179_2.png) [@ichilddev](https://community.glideapps.com/u/ichilddev)\
**Post date:** [November 16, 2022, 7:33am UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/4 "2022-11-16T07:33:38Z")

</div>

Hi hi @Darren_Murphy Darren wondering if Javescript can use to collect JSON data?

> **[Glide Docs • Experimental Code Column](https://www.glideapps.com/docs/reference/computed-columns/experimental-code-column)**
>
> Create new computed columns with JavaScript.

How do we access Glide.json as mentioned in the above link?

---

<div class="post-metadata">

**Author:** ![kaustubh97](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kaustubh97/32/16113_2.png) [@kaustubh97](https://community.glideapps.com/u/kaustubh97)\
**Post date:** [November 16, 2022, 10:24am UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/5 "2022-11-16T10:24:22Z")

</div>

Javascript is a computed column so its faster than appscripts.  
The returned value of the appscript will take time to sync into the app as well

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 17, 2022, 12:13am UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/6 "2022-11-17T00:13:34Z")

</div>

> [@ichilddev](#):
>
> collect JSON data?

What exactly do you mean by this? Are you trying to create a new JSON object or are you trying to fetch it from somewhere else?

---

<div class="post-metadata">

**Author:** ![ichilddev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ichilddev/32/45179_2.png) [@ichilddev](https://community.glideapps.com/u/ichilddev)\
**Post date:** [November 17, 2022, 1:02am UTC](https://community.glideapps.com/t/better-to-use-javascript-column-or-external-code-for-app-speed/52424/7 "2022-11-17T01:02:49Z")

</div>

Hi

Thanks for your reply.

Trying to create a new JSON Object.

It seems that @Darren_Murphy has helped in another conversation.

Thanks!
