Jun 24
20
In the Google Merchant Center structured data documentation, it says that you should add structured data to the HTML source and that it “can’t be generated after a page has been loaded using JavaScript.” This does not mean Google cannot process the structured data on the page if generated using JavaScript, but rather that it makes it harder for Google to do so.
Go here to read the rest:
Google Warns On Using JavaScript For Structured Data