# \[IGN-2420\] Way to prevent script from running when popup view loads?

**URL:** <https://forum.inductiveautomation.com/t/ign-2420-way-to-prevent-script-from-running-when-popup-view-loads/61322>\
**Category:** General Discussion\
**Tags:** ignition81, scripting, perspective\
**Created:** [June 28, 2022, 8:22pm UTC](https://forum.inductiveautomation.com/t/ign-2420-way-to-prevent-script-from-running-when-popup-view-loads/61322 "2022-06-28T20:22:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 29, 2022, 7:26pm UTC](https://forum.inductiveautomation.com/t/ign-2420-way-to-prevent-script-from-running-when-popup-view-loads/61322/3 "2022-06-29T19:26:36Z")

</div>

I don't really have an answer for you, however, this post might shed some light on what you're running into.

> [@Perspective components internal loading](https://forum.inductiveautomation.com/t/perspective-components-internal-loading/61341/4):
>
> There’s no way to know when the component is done, because in the strictest sense it’s not Ignition (Perspective) that’s taking the 10-20 seconds. The property assignment is instantaneous, but after the assignment there are several factors which all add to the amount of time: The Gateway has to send all of the data to the browser through the websocket. Like a pipe, there’s only so much data which can be sent at one time - the data sort of backs up and comes through in chunks. The browser recei…

I would also suggest using the `system.date.*` functions as opposed to the `datetime` package.

---

_[View the full topic](https://forum.inductiveautomation.com/t/ign-2420-way-to-prevent-script-from-running-when-popup-view-loads/61322)._
