svelte-meta-tags icon indicating copy to clipboard operation
svelte-meta-tags copied to clipboard

Metadata is loading in after the script tags, discussion

Open gregg-cbs opened this issue 8 months ago • 6 comments

Im not using your package however i have done pretty much the same thing - a component that you pass metadata info into and then it loads it into svelte head.

The issue I have noticed when using w3 validator is that the metadata component has no load time specificity or priority - this means that when rollup bundles the project it could load/run the metadata component last which can cause the metadata to show underneath the scripts and not be first in the head as recommended.

Which looks like this: image

W3 Validator is saying that it does not appreciate the meta tags being loaded in last and having all the scripts above it - whether or not this impacts anything im not sure but it is interesting to know.

The error W3 is giving me: image

gregg-cbs avatar Jun 14 '24 09:06 gregg-cbs