: Google search results show "Loading, downloading assets" for all site pages because Googlebot is not fully running JavaScript I host maps. Each map has its own unique URL. But all these URLs
I host maps. Each map has its own unique URL. But all these URLs return the exact same small html/css code, just to show something to the user while the assets and content are being loaded via ajax.
Once loaded, the title and the content is updated.
However it seems Google isn't bothering with this.
I know google crawlers run javascript, but not in this case? What are the possible reasons for this? And the possible solutions?
I have tested with the search console explorer. The page is rendered exactly as it should.
More posts by @Berumen354
1 Comments
Sorted by latest first Latest Oldest Best
Google can crawl javascript, but it's not guaranteed that it will be able to read all types of javascript.
The meta tags of a page are loaded in the html, and Google reads this. There is no certainty that Google will change the meta tags based on your javascript.
The following code was reported to work in changing a site's meta tags while having Googlebot properly read it to update the SERP tags. I have personally not tested it.
<script>
var m = document.createElement('meta');
m.name = 'description';
m.content = 'This tutorial has some helpful information for you, if you want to track how many hits come from browsers where JavaScript has been disabled.';
document.head.appendChild(m);
</script>
Another one:
document.title = "Google will run this JS and show the title in the search results!";
It is better if you can update the tags in PHP, but if you have to do it in JS you can try these out. If you do and they work, please do let me know as I might like to use this script later on as well.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.