Within the Google Service provider Middle structured knowledge documentation, it says that it’s best to add structured knowledge to the HTML supply and that it “cannot be generated after a web page has been loaded utilizing JavaScript.” This doesn’t imply Google can not course of the structured knowledge on the web page if generated utilizing JavaScript, however relatively that it makes it tougher for Google to take action.
Here’s a screenshot of that line:
Jarno van Driel posted about this on LinkedIn and mentioned, “Google Search Central documentation explains easy methods to add structured knowledge markup through JavaScript, but Google Service provider Middle documentation mentions markup should not be added after a web page has been loaded.” He requested, Which of the docs is right?
Ryan Levering from Google chimed in and mentioned technically each are proper and Google wants to regulate the wording on the doc. He said, “We’re working at discovering the proper wording to clarify this discrepancy at present.” He additionally warned “towards working off and re-implementing your web sites,” if it really works now, depart it.
He then goes on to clarify that Google Service provider Middle crawlers can and do course of structured knowledge when generated with JavaScript however they’ve seen high quality and inconsistency points with these implementations, in order that they advocate you don’t use it.
He wrote:
It isn’t that GMC crawler cannot ever render JS, however relatively that there are extra usually high quality issues with the rendering and discrepancies when websites do issues like have one value on uncooked HTML load after which replace that with a strikethrough value on render. It will get tough when the markup is loaded a technique on web page load after which modified or rendered on high through JS.
So if the HTML supply rendered and mentioned one factor after which the JavaScript adjustments that later, it might confuse Google in some instances.
When it comes to the documentation, he mentioned, “I believe it was simpler to write down in GMC to only say that it needs to be within the unique web page load and we’re re-examining that phrasing now. Typically you probably have that means that is doubtless going to be extra according to all our programs, however it might be unfaithful to say which you can by no means do that.”
4 years in the past, Google got here up with its structured data using JavaScript documentation – as a reminder.
Discussion board dialogue at LinkedIn.

