Spinning wheel or text to show while Arcade script loads in Popup (similar to how text content displays while loading)

196
0
03-09-2026 06:49 AM
Labels (1)
NikyShamblin
Emerging Contributor

Hello arcade community, I'm curious if there is a way to show a spinning wheel or perhaps text ("The layer is currently loading...") while an Arcade script loads within a Popup element.

For context, I have a layer popup configured to show environmental constraints within an area of interest. The popup populates using Geometry functions to compare several constraints layers with an area of interest, all contained within various Arcade script elements. However, often times, especially when feature services are down or otherwise bogged down, the Arcade takes several seconds to load. During this "loading" time, there is no way to show the user that the information is still loading, so they might incorrectly assume that there is no relevant information pertaining to the site (which I want to avoid). 

Purple arrows indicate loaded text elements. Green arrow shows where Arcade script appears once loaded (no scroll wheel)Purple arrows indicate loaded text elements. Green arrow shows where Arcade script appears once loaded (no scroll wheel)                 Green arrow shows loaded Arcade scriptGreen arrow shows loaded Arcade script

Ideally, it would be great to show something like how text elements appear while loading in a pop up (see image below). But I would be perfectly content with text to show while loading ("The layer is currently loading...") as well.

Spinning wheel while text element loads in popupSpinning wheel while text element loads in popup

Any help here would be appreciated, thanks!

0 Replies