Scripts and the Head: What Goes Where?
When should scripts be put in the Gatsby Head and when should they be loaded by the Gatsby Script component in your pages or components? Let's dig in!

When should scripts be put in the Gatsby Head and when should they be loaded by the Gatsby Script component in your pages or components? Let's dig in!
The Gatsby Head API — available in gatsby@4.19 or later — enables you to update the document head of your page without any third-party library. This feature is built in such a way that it’s 100% compatible with React’s suspense/streaming capabilities.