#deduplicate LD+json

8 messages · Page 1 of 1 (latest)

wraith magnet
#

could we have a way to identify script tags in route head via an id/key so we can deduplicate them (unlike say a link rel which is easy to dedupe)? right now i am seeing that if i have an ld+json in the root.tsx and one in the route, i end up with 4 or even 6 ld json script tags

mild canyon
#

how do other APIs handle this? unhead, helmet...?

#

we could also allow postprocessing of route head stuff via a callback

wraith magnet
#

not sure about helmet

mild canyon
#

ok can you please collect some more state of the art then we can decide which way we want to go

wraith magnet
distant walrus