ruby-news / ruby-news.github.io

1 stars 4 forks source link

Fix ruby news description #79

Open Souravgoswami opened 2 years ago

Souravgoswami commented 2 years ago

Our site currently fetches the correct description and adds the cookie bar notification.

image

I guess the google crawler takes that text because it probably scans what's in the screen for the user to see. The cookie bar has high z-index, and the crawler probably reads the contents of the cookie bar first.

It might be worth delaying the cookie bar to ensure it doesn't load whenever the user visits the page. Maybe 1.5 seconds delay at first can get rid of the wrong-description.

We don't violate GDPR in such case - because cookies are disabled by default until the user accepts it.

igormamutkin commented 2 years ago

Now we have a delay of 2000, set to 3500?