# Custom code component loading time

**URL:** https://community.glideapps.com/t/custom-code-component-loading-time/75640
**Category:** Ask for Help
**Created:** [August 14, 2024, 2:20pm UTC](https://community.glideapps.com/t/custom-code-component-loading-time/75640 "2024-08-14T14:20:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![scotfield123](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/scotfield123/32/62356_2.png) [@scotfield123](https://community.glideapps.com/u/scotfield123)
#### Post date: [August 14, 2024, 2:20pm UTC](https://community.glideapps.com/t/custom-code-component-loading-time/75640/1 "2024-08-14T14:20:58Z")

</div>

Hi everyone, I’ve got this custom code component for a loading animation. When is enabled for 1-2 seconds it’s showing this message ‘‘Add a prompt to generate a component’’. Do you guys know any workaround for this to not show up? Thank you

 ![6](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/a/fae9b2458659f17f58a7d4c5fffc9761e86d7619.png)  
 ![5](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/711302f4448ad0a8c9250d4665139b3cc9996cff.png)

---

<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: [August 14, 2024, 11:33pm UTC](https://community.glideapps.com/t/custom-code-component-loading-time/75640/2 "2024-08-14T23:33:18Z")

</div>

Gotta wait for Glide to fix this, no workarounds at the moment as far as I aware.

---

<div class="post-metadata">

### Author: ![Trustin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trustin/32/88217_2.png) [@Trustin](https://community.glideapps.com/u/Trustin)
#### Post date: [August 21, 2024, 6:07am UTC](https://community.glideapps.com/t/custom-code-component-loading-time/75640/3 "2024-08-21T06:07:04Z")

</div>

I may have a workaround for you.  
I used timed based calculation and if else column.  
When i click a box will appear for certain seconds and disappear.  
The box has visibility condition to show when its “Show”  
 ![CPT2408211359-399x349](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/b/5b8db836ab9209c3ee9d1579fb7cf293075be799.gif)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/8/d8de45312b8d483098936d834ea60149a5f86210.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/713a43e288357f895dcf4a5060bc5ac096a7c23c.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/1/519b8ecc73cacd688775bc9f83cd0a524cdd554f.png)

---

<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: [August 22, 2024, 12:10am UTC](https://community.glideapps.com/t/custom-code-component-loading-time/75640/4 "2024-08-22T00:10:06Z")

</div>

If the “Now” value is only updated every 10 or so seconds, you might risk running into a scenario when it takes more time than what looks like 4-5 seconds there for the component to show.
