I deployed JSON-LD asynchronously inejecting it in a script tag:
var jsonLD = document.createElement('script');
jsonLD.type = 'application/ld+json';
jsonLD.innerHTML = JSON.stringify({
"@context": "https://json-ld.org/contexts/person.jsonld",
"@id": "http://dbpedia.org/resource/John_Lennon",
"name": "John Lennon",
"born": "1940-10-09",
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
});
document.head.appendChild(jsonLD);
Google's testing tool does not recognize any JSON-LD when checking the URL though. Will it still be indexed or is Google (and other bots) are blind to asychonously loaded JSON-LD?