… and after.
Please note that asynchronous scripts are not guaranteed to execute in specified order and should not execute actions directly on the document! Scripts that depend on execution order or need to access or modify the DOM or CSSOM of the page may need to be rewritten to account for these constraints.
The loading and execution of scripts that are not necessary for the initial page render may be deferred until after the initial render or other critical parts of the page have finished loading. Doing so can help reduce resource contention and improve performance. I hope that this was helpful for you. If it was, like my post. Please leave me any comments or questions below.