Normally the download and execution of script blocks the parsing of HTML, and to solve this problem async and defer have been created

Async:

If you download the file first, execute it immediately

Defer:

Download it first and wait until the DOM is loaded