Kind of an odd question. I tend to have forms that are larger in size, so when loading them, there is naturally going to be a delay. However, I'm wondering if it is possible to have a loading mechanism that is a little more friendly in terms of blocking the main UI. As it is now, even though the call to load the form is async, it blocks the main UI anyway.
The idea might instead be to have the loading broken up into much smaller chunks so that it doesn't interfere as much with the UI? I don't mind if it takes a bit longer as a result. Maybe a separate "LoadNice" function or something along those lines?
To give an example, I've got a login form that loads immediately. While the user is logging in, I'd like to load up the considerably larger main form in the background, rather than having a delay of a few seconds before the login form is shown. This works, but input into the login form is blocked while the main form is loading anyway, so not really a big improvement, though being able to see the form right away is a bit of a step forward.
I'm assuming input is blocked because the load function is doing a lot of work and doesn't give the main UI a chance to do anything while it is working. I'm aware JS isn't multithreaded, so there's not much to be done aside from rewriting the function to maybe do things a little differently?