: Will Google respect changing the description with JavaScript? I am building a single-page-application/SPA that uses JavaScript to control all the pages. Naturally, this means only one meta description
I am building a single-page-application/SPA that uses JavaScript to control all the pages. Naturally, this means only one meta description embedded in HTML, even though there are many different pages with different descriptions across my site. I know it's possible to modify the description meta tag with JS, but will it affect google? Is there any other way to control the description dynamically like this?
More posts by @Yeniel560
2 Comments
Sorted by latest first Latest Oldest Best
Google indexes JavaScript just fine. What you do is not a popular way of changing the meta description but that might be an advantage for you. I would stick with your method!
According to a quick search for "does google search process javascript" this result seems to answer your first question.
Is there another way? Yes, use PHP to build your meta tags dynamically, then they are created before the page is even served.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.