Require.js reports an error in head, but it is normal to put it in body. Why?

directory structure
clipboard.png

jshead

clipboard.png

main.js:

clipboard.png

clipboard.png

:

clipboard.png

it won"t be a problem if you put require.js and main.js at the bottom separately, such as comments. What"s the reason for this? Require.js is the latest version of the 2.3.5 official website.

Mar.20,2021

what is your file that uses js and how do you call it?
you can refer to a similar question I answered earlier
https://codeshelper.com/q/10.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf209b-31122.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf209b-31122.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?