I have a suitelet that takes some time to load. Ho...
# suitescript
a
I have a suitelet that takes some time to load. How can I add a loading page?
question answered 1
b
usually that involves making the request to the suitelet in client side code and picking your favorite spinner or progress bar module
you can also do it yourself in css, though you should usually find a javascript module if you have to ask
a
Do u have N/query
What about a promise? If I have an expensive function that modifies the an inlinehtml field, is there anyway for me to write the page with an overlay and then remove it after in the server side script?
I was thinking of writing the expensive function to return a promise that modifies the default value and then render the page but it looks like netsuite waits for the promise to resolve.
b
you can try sharing your code, but expect to learn how normal javascript works
netsuite is weird and does synchronous stuff
💯 1
the majority of javascript is designed to work asynchronously
a
A client script worked nicely. Thanks.
s
a slow suitelet is often a smell that suggests a SPA may be a better UX