Mobile app version of vmapp.org
Login or Join
Yeniel560

: 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

@Yeniel560

Posted in: #Googlebot #Javascript #MetaDescription #SinglePageApplication

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

2 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

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!

10% popularity Vote Up Vote Down


 

@Hamaas447

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme