-
Notifications
You must be signed in to change notification settings - Fork 660
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
Place meta charset output at top of head #239
Comments
@tinynumbers on the server side, you can control the ordering of groups of head information (i.e. meta tags before title tag before link tags). And the ordering of tags should stay the same order they were given as props to Helmet. On the client, you're right, the code doesn't try to maintain this order. We can look into fixing that. Thanks! |
+1 for this: I'm prerendering my page with puppeeter but title is placed below the styling thus google does not find it. |
Have anyone solved this issue ? |
Bump, still no solution to this issue. |
Any solution yet for this ?? |
So to this day the only solution to this is still https://github.com/jimmay5469/react-helmet/tree/feature/placement ? What's up with that. I can't believe no one worked around that in 4 years |
According to the HTML5 specification,
However, as far as I can tell, react-helmet makes no attempt to output any configured
<meta charset='...'>
tag as the first thing in the<head>
element; in fact it appears to always be output after the<title>
. If other code is also writing to the<head>
(e.g. styled-components), this could push the charset specification well past that 1024 byte cutoff.Is it possible to modify the output order of the head elements produced by react-helmet?
The text was updated successfully, but these errors were encountered: