-
Notifications
You must be signed in to change notification settings - Fork 27.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding scripts with multiple Head components. #1181
Comments
Hi @Lyonsclay The issue is One way to make this work is to remove the Again, as this is not a |
Hi @impronunciable! I did put the Github gist script outside of the Head component at first, but then it doesn't seem to load unless I refresh the page.
|
@Lyonsclay It uses document.write, it will work just when you refresh the page. Take a look at this to see if it helps you https://stackoverflow.com/questions/30429361/how-to-embed-a-gist-using-reactjs |
Thanks @impronunciable that Stackoverflow post looks promising:) |
I am making a basic blog and I want to embed a CodePen and a Github gist in different locations of the page. It appears that Next.js only recognizes one Head component per page.
My question is how to place these components at different places on the page and make sure they all load with initial page load.
The text was updated successfully, but these errors were encountered: