Output JSON-LD inline
See original GitHub issueIs 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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
🎉 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
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.