You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's worth customising where the asset tags are rendered in the head if you need to wait for an API response to render SEO meta tags and want the client to start loading assets. The webpack bundler integration seems to support this through the <webpack-assets> tag, but the Vite integration doesn't have a similar public API.
It's currently possible using an internal API, out.global.___viteRenderAssets, but we should consider exposing a tag that behaves similarly and is documented.
Possible Implementation & Open Questions
Expose a <vite-assets> tag that causes assets to be rendered in its place instead of at the end of the head.
Is this something you're interested in working on?
I'm happy to try this if someone can point me in the right direction!
The text was updated successfully, but these errors were encountered:
Description
Sometimes it's worth customising where the asset tags are rendered in the head if you need to wait for an API response to render SEO meta tags and want the client to start loading assets. The webpack bundler integration seems to support this through the
<webpack-assets>
tag, but the Vite integration doesn't have a similar public API.It's currently possible using an internal API,
out.global.___viteRenderAssets
, but we should consider exposing a tag that behaves similarly and is documented.Possible Implementation & Open Questions
Expose a
<vite-assets>
tag that causes assets to be rendered in its place instead of at the end of the head.Is this something you're interested in working on?
I'm happy to try this if someone can point me in the right direction!
The text was updated successfully, but these errors were encountered: