Therefore, the necessary script files must also be asynchronously loaded onto the page.
Note: The following is a proof of concept example, which may require customization based on the specifics of the implementation alongside a theme or plugin.
Step 1: Add a hook to return the necessary scripts.
The following hook determines which scripts to load for a given form.
Step 2: Add a helper script to every page.
The following script asynchronously fetches the necessary scripts for a form and dynamically loads the results to the page.