Controlling Load Order of HTML Head Elements in Vike's SSR Process #2528
-
Hello there, I'm currently working on a project where I need precise control over the load order of elements in the HTML head when using server-side rendering with Vike. Specifically, I'm aiming to achieve the following order:
This ordering is recommended for optimal performance and rendering by Google. Some challenges: I would appreciate some help and pointers on this. Thank you in advance for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi Dido, have you tried to Together with #695 it gives you complete control over the order of |
Beta Was this translation helpful? Give feedback.
Hi Dido, have you tried to
assets.sort()
inside https://vike.dev/injectFilter? I believe it already works (if it doesn't then it's something Vike can implement.)Together with #695 it gives you complete control over the order of
<head>
tags — but let me know if you can think of a use case that wouldn't be covered.