Regarding the reference of JS files, although there are currently many frameworks and tools (such as webpack, commonjs, requiresjs, etc.), they have done a good job. But aside from these frameworks, it is still helpful to understand the native loading method. This article briefly describes the synchronous and asynchronous loading methods of some js files.
Synchronous loading
can be inserted into the html file with the