@perchance Is there a way to execute JS after update() has finished?

I’ve tried wrapping it in a custom function which emits an event, but it doesn’t work the first time the page is loaded (since I can’t replace that occurrence). Also, it seems like I can’t trigger the update function once the document is loaded, so I was searching if there’s an event which I can listen to, to know when update() has finished running.