Anyone leveraged New-UDPreloader?

#1

Hi guys, have a scenario where I’m fetching all sorts of data so my dynamic page looks lonely before it returns there data, I see that we have an option to use New-UDPreloader but unsure of how to use, anyone use this? What are others doing for these cases where load times could be 20sec+ of silence for the user?

Thanks,

1 Like

#2

New-UDPreloader is not effective like write-progress in powershell, so its kind off workaround so far but u can use as per the developer example below

if ($Cache:Data -eq $null) {
New-UDPreloader
}
else {
New-UDChart -Endpoint { $Cache:Data … }
}

2 Likes

#3

Baybe this will help:

1 Like

#4

Thanks @psott @wsl2001 … I’ll see how to integrate this in my code. I’ll follow up on how that goes. I like the way UDinput uses circular preload button click is triggered, would like to implement the same for when endpoints and any point where data retrieval is being executed would be ideal.

0 Likes