Comments (9)
How exactly random attribute bugs you? It's just used to prevent deletion of previously defined tags with the same attributes as defined by react-head.
from react-head.
There is a mention in this comment about these attributes shouldn't affect software outside of the site. So maybe we should open issues in failed validators.
People also mention google AMP breaking. I wonder to know why they use react in AMP which is a kind of framework without scripts or something.
from react-head.
Thanks @CanRau
from react-head.
it bugs people in the mentioned comment nfl/react-helmet#79 (comment) and I'm not sure how real it is for SEO as some worry..
probably it's not a thing..
from react-head.
they're probably generating AMPs using react?!
from react-head.
Using React for AMP pages is a good use case (we currently do this at NYT), but in that case, since you don't care about the client-side head tags being updated (not much if any client-side JS executes) you can regexp the data attribute out before sending the server markup.
Otherwise, as @TrySound suggested, this attribute is used so react-head knows which tags it's responsible for updating/removing. I'm not sure of another way to do this same thing.
from react-head.
So the issue can be closed if those attributes have no impact 👍
@TrySound yeah I had thought about validator issues rather than "real" problems, too 🥇
from react-head.
Can you generate hash to identify instead of a data attribute?
from react-head.
And where do you suggest to store this hash?
from react-head.
Related Issues (20)
- Link canonical cascade HOT 1
- Expose HeadTag? HOT 2
- Question: Does it work without ssr for SEO, on fb and twitter ? HOT 1
- Children prop type missing in HeadProvider HOT 7
- Is this library still maintained? HOT 1
- Suggestion: use renderToStaticMarkup instead of renderToString HOT 4
- Some tags not collected HOT 4
- Invariant failed in HeadTags HOT 9
- Development server not working HOT 2
- does not support ie9? HOT 2
- Proposal: headTagsToElement(headTags) HOT 1
- Element.remove() not supported in IE HOT 3
- Document usage with SSR streaming HOT 3
- TypeScript support HOT 3
- react-head supports meta update on lazy load HOT 3
- itemProp support on <Meta /> HOT 1
- canonical link is repeated HOT 1
- Title component doesn't override default <title> tag provided via HTML template HOT 10
- Entities in computed attribute values? Suggested approach? HOT 5
- RFC: Managing tags without extra markup HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-head.