how to load multiple widgets in async manner(in parallel) in service portal page when those widgets are fetching data from different API's.

JT07
Tera Expert

Hi,

I have a page with multiple widgets in service portal. those widgets are fetching the data from different API's . currently while page load, all the widgets data (fetched from API's) is loading sequentially means second widget is getting loaded only after first widget and so on....

Could some one please help me on calling these widgets in Async manner or independent to each other.

1 REPLY 1

Asbj_rn
Mega Expert

You could get around it by making the api calls inside the async and then update the widget once the data have been retrieved.

 

And then just control how and when elements becomes visible in order to control how it is perceived by the end user.