As a temporary workaround, please consider using one of the JavaScript table of contents, you can add links to your scripts to the html_head configuration option.
html_head