2

Let's say I have set my title using HTML to "Something - Example" and with Javascript I change the title to "Apple - Example". When I google my website (after waiting for it to update) or the link gets embedded on websites like Twitter or Discord, it shows the static "Something - Example" title instead of the new title.

2
  • 1
    Twitter and discord are not going to be able to show your JS set title. Their bots that fetch pages for preview purposes don't execute JS. Googlebot should be able to understand the JS. How long has been since you updated your title? Commented Jun 24, 2021 at 18:21
  • The page that has waited the longest has waited for about a week now without updates.
    – DindinYT37
    Commented Jun 24, 2021 at 18:27

1 Answer 1

2

A week can be too early for Google to process/render JavaScript and index the final content. (There is no time guarantee from Google on this. Realistically, the JS processing and rendering can take days to weeks.)

https://developers.google.com/search/docs/guides/javascript-seo-basics#how-googlebot-processes-javascript

enter image description here

At first, Google indexes the HTML that is not modified by JS. You can call it the first phase.

Later, based on resource availability, Google processes (executes) JavaScript in the render queue. Then it indexes the final content. You can call it the second phase.

I think in your case, Google may not have completed the second phase.

1
  • 1
    I've seen reports that the second stage of rendering and then indexing the result of that render can take up to 2 months in some cases. Commented Jun 25, 2021 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.