This would be the only clean way of ensuring that, for example, an input .focus() would execute at the right time...
...or select the first row of a table once it's done loading: