Reputation: 21
I want to add dynamic meta tags on aspx page. Here I am confused between client side (using ajax call) and server side.
Which way is effective? I saw more examples of adding dynamics meta tags from server side on page load.
Thanks,
Upvotes: 1
Views: 215
Reputation: 1861
You should add the meta tags server-side.
Meta tags are usually used to describe the content of the page for various kinds of robots (search engine, Facebook share button, ...), or send additional info about the page to the browser (rendering mode for IE, charset declaration). Most of that functionality will not work - could not work - if you add meta tags through client-side script.
Upvotes: 1