-
Notifications
You must be signed in to change notification settings - Fork 673
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
Add styles to HEAD, not to BODY #2499
Comments
Hmm. Not sure how |
Thank you, @lachlanjc |
Well, you won't see that in the site the styles are in body. They are somehow moved to head. But when I check .next/server/pages/....html I see that styles are in body. And amp sends me error for these html files |
Hello. I want to ask, if there any ability to add all the <style> tags in head, but not in body. In my case, we use NextJS with config { amp: true }, but it requires all the styles to store inside head tag. In this case we can't run the app. As well, the standards (HTML 4.01: the style element) clearly specifies that the style tag is only allowed inside the head tag. Could you add an ability to insert style inside head? It will be really helpful for us.
The text was updated successfully, but these errors were encountered: