So my understanding is that you shouldn’t be making any blocking calls, because it’ll hold up the event loop.
But how do you get initial data from a remote source into the document then?
Whether it’s an early next tick call back or utilising the handler’s server lifecycle hooks… surely the thread of execution will then move on and attempt to utilise data that isn’t there yet?
I know you could have a button that gets the data and asynchronously updates the UI from that… but the constraints of this project dictate that upon page load (i.e. when an application’s document is rendered) that the data is already there for other buttons and controls to take advantage of.
Does that make sense?
Feels like I’m missing something obvious here…