JS error in google search

When i search the new site with your theme in google I get an error:

Untitled

http://willowriverside.com


For full functionality of this site it is necessary to enable JavaScript. Here are the instructions how to enable JavaScript in your web browser.


I have searched for a solution and it looks like it is a theme issue:

Site is WillowRiverside.com Our support is valid until 6 October 2022. The site is now live and the client is upset.

Please help!

(Below is the google discussion regarding this issue on another site).


Well as such, Google just uses the text from the page to create the snippet. That text comes from the site itself. That text exists in the HTML. That text isn't 'generated' by Google. 

 

Doesnt matter if the user (running the search) has javascript enabled or not. Its just plain text. 

 

 

Under 'normal' circumstances the websites own code, would hide or remove that message from the page when JS is run. Making the assumption that if the browser doesnt have JS enabled, they will still see that message. 

 

There are two complications re search engines with this. 

 

  • The site javascript MAY not of run during the indexing. Googel tries to render JS - but sometimes fails (see the link provided by itsRaman!) ... so that text might end up being cached - and hence usable in the snippet. 
  • Franky it still the site owner responslibity to 'gracefully' degrade is JS fails. 
  •  
  • The site designer may only 'hide' the text with CSS or using <noscript> - the problem with both of these techniques, is the text REMAINS in the DOM. So when Google saves the page post-render, these messages remain in the page, and hence potentially an be used in a snippet. It's best for the JS to REMOVE the message, not just hide it. 

 

One trick that a site owner should really do to avoid this, is wrap such messages in a 'data-nosnippet' block, which would prevent Googel being ABLE to to use these messages in the snipppet (regardless if JS was executed during indexing-rendering or not!) 

 

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.