question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output JSON-LD inline

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently JSON-LD is output in the document head only.

Describe the solution you’d like I’d like the ability to output JSON-LD outside the head so I may group logical items together within a single element in my documents and reduce the time required to parse the document head. I’d expect this to be the default behavior with the ability to add to the head by dropping the tag into svelte:head.

Describe alternatives you’ve considered Using Microformats to structure the data.

Additional context Grouping items together in markup is good for copy/paste as well as scrapers. Some might not like it, which is why they would be be able to place in the head using existing facilities design for the purpose.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
oekazumacommented, Mar 12, 2022

🎉 This issue has been resolved in version 2.4.0 🎉

The release is available on:

npm package (@latest dist-tag) GitHub release

docs: JSON-LD Properties

1reaction
oekazumacommented, Mar 12, 2022

If you specify output='body' in <svelte:head>, the output will be in <head>, but that is an edge case and I don’t think you need to worry about it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON-LD - JSON for Linking Data
JSON -LD organizes and connects it, creating a better Web. Linked Data. Linked Data empowers people that publish and use information on the...
Read more >
Schema Markup Generator (JSON-LD)
A Schema.org structured data generator that supports the creation of JSON-LD markups. Including all of the required item properties and more.
Read more >
JSON LD Graph - JSON Formatter
It helps to validate JSON online with Error Messages. It's the only JSON tool that shows the image on hover on Image URL...
Read more >
JSON Editor Online: JSON editor, JSON formatter, query JSON
JSON Editor Online is a web-based tool to view, edit, format, repair, compare, query, transform, validate, and share your JSON data.
Read more >
A Guide to JSON-LD for Beginners
Learn the important basics of JSON-LD and how to ramp up your ... Yandex in 2011 to create a unified structured data vocabulary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found