Manage the order of head content in app router
Answered
RS posted this in #help-forum
RSOP
How can i reorder the meta tags where title, description,ect should be at top of head tag.
currently i’m using app router and metadata api of nextjs, but in mostly some preload links and nextjs scripts are added at top
currently i’m using app router and metadata api of nextjs, but in mostly some preload links and nextjs scripts are added at top
Answered by joulev
No, it is not possible with nextjs.
That’s an obnoxious requirement and I’m pretty sure the seo team doesn’t know what they are talking about
That’s an obnoxious requirement and I’m pretty sure the seo team doesn’t know what they are talking about
12 Replies
@RS How can i reorder the meta tags where title, description,ect should be at top of head tag.
currently i’m using app router and metadata api of nextjs, but in mostly some preload links and nextjs scripts are added at top
why do you want to do that? putting the metadata at the start does nothing. putting the preload scripts at the bottom harms performance.
RSOP
seo team suggested to have meta tags at top
to have seo requirements fulfilled we need to perform this
any suggestions on can we achieve this?
any suggestions on can we achieve this?
@RS to have seo requirements fulfilled we need to perform this
any suggestions on can we achieve this?
No, it is not possible with nextjs.
That’s an obnoxious requirement and I’m pretty sure the seo team doesn’t know what they are talking about
That’s an obnoxious requirement and I’m pretty sure the seo team doesn’t know what they are talking about
Answer
RSOP
Is there any workaround via which we can achieve this?
@RS Is there any workaround via which we can achieve this?
American Chinchilla
Its strange because it shouldnt matter
As joulev said
Its not even a ranking factor for SEO
As long as the meta data is present thats what matters
If using semrush etc they dont really care about order
As long as its present
@RS Is there any workaround via which we can achieve this?
There is no workaround.