Scripts don't work outside of Head in _document
      #44930
    
    
        Labels
        
  
            
              template: bug
  A user has filled out the bug report template. Issue needs triaging 
        
      Head in _document
      #44930
    
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Script optimization (next/script)
Link to the code that reproduces this issue
https://github.com/NiedziolkaMichal/next-document-script-bug
To Reproduce
_document contains the following code:
While each script file contains only
console.log, outputting its index.Describe the Bug
Only
script-1.jsis executed.Expected Behavior
All 3 scripts should be executed, in the same order as they are placed.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: