2

We have an Angular Universal application which has dynamically loading JSON-LD script tags. These script tags are showing in the page source.

We've tested the same using the Structured Data Testing tool and there are no errors.

But when we tried using the Mobile-Friendly Test tool, these dynamic loading JSON-LD script tags are loading without data:

enter image description here

What might be the issue?

  • Do these tag appear in the page source when you visit the page as mobile user agent? – Σπύρος Γούλας Jan 11 at 11:22
  • @ΣπύροςΓούλας We've tried that one as well. Page source is appearing for the page when we visit the page as mobile user agent. – Alwin Richard Jan 11 at 12:03
1

We are using State Transfer API in our application for avoiding multiple service requests and we have only called the LD+JSON method in the server side. Tried calling the same in browser side as well and the issue got fixed.

Thanks, everyone.

New contributor
Alwin Richard is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.