google / google/schema-dts

Increasing HTML size

Open
#177 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Hello,

I have 480 currency items and when I use schema-dts its increasing HTML size, how can I set export async like .json-ld file? I can success it with PHP, now I want to use for my NextJS project with this npm package.

document.addEventListener("DOMContentLoaded", function() {
$("select[name=market]").on('change',function(){
window.location.href = $(this).val();
});
$.getJSON( "/CURRENCY-LIST-PAGE.jsonld", function( data ) {
$( "<script/>", {
"type": "application/ld+json",
"html": JSON.stringify(data)
}).appendTo( "head" );
});
});

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.