-
Notifications
You must be signed in to change notification settings - Fork 44
Open
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.
<script type="text/javascript"> 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" ); }); }); </script>Metadata
Metadata
Assignees
Labels
No labels