wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Gutenberg - The first image in the content is repetitively requested

Open kuoko opened this issue 6 years ago • 7 comments

  • [x] I've read and understood the contribution guidelines.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

If an article contains one ore more than one core/image then the first image is requested on each interaction and update with the block editor. You can see it monitoring the network tab.

It looks like the script recursively parses the content to set the post thumbnail in the Google preview. It also happens even if a Featured image is set and the Google preview thumbnail is taken from there.

The image is also requested everytime the mouse goes over the Google preview thumbnail.

Please describe what you expected to happen and why.

The image should be requested once and not on each interaction or on Google preview thumbnail mouse over.

How can we reproduce this behavior?

First issue

  1. Add a core/image to the Gutenberg editor and interact with the editor.
  2. Monitor the network tab
  3. You will see the first image in the Gutenberg editor repetitively requested

Second issue

  1. Mouse over and Mouse out the Google preview thumbnail
  2. Monitor the network tab
  3. You will see the image set as Google preview thumbnail repetitively requested

Both issues seem to happen on Chrome only. I'm not able to replicate them on Safari.

Technical info

  • If relevant, which editor is affected (or editors):
  • [ ] Classic Editor
  • [x] Gutenberg
  • [ ] Classic Editor plugin
  • Which browser is affected (or browsers):
  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Other

Used versions

  • WordPress version: WordPress 5.5.3
  • Yoast SEO version: 15.3
  • Tested with theme: Twenty Twenty

kuoko avatar Nov 24 '20 10:11 kuoko

Hi @kuoko , I was unable to reproduce this behavior in either Chrome or Firefox. Can you check if it's maybe a browser extension that you're running?

Djennez avatar Nov 24 '20 12:11 Djennez

Hi @Djennez, I've disabled all my browser extensions and the issue is still there.

I'm on Chrome Version 86.0.4240.198 (Official Build) (x86_64) - macOS Catalina Version 10.15.7

Are you on mac too?

kuoko avatar Nov 24 '20 16:11 kuoko

Yep, Chrome version 86.0.4240.198 on Mac OS Catalina 10.15.6.

You're sure this isn't a plugin / theme conflict somewhere?

Djennez avatar Nov 25 '20 07:11 Djennez

I've double checked on two different brand new WordPress instances (v 5.5.3) with no contents, twenty-twenty and just Yoast SEO (v 15.3) enabled and I'm still experiencing the issue in both incognito and normal mode with all the extensions disabled.

The two environments are completely different. One is an isolated instance built with Docker containers. The second instance is running on a Linux hosting.

I've also tried from a different laptop with the following setup and it's still happening.

macOS Mojave Version 10.14.6 Chrome Version 87.0.4280.67 (Official Build) (x86_64)

kuoko avatar Nov 25 '20 11:11 kuoko

Can you share a screenshot of your network traffic? Just so that I can get an idea of what to look for. The only discrepancy I noted between our setups was my Chrome version, but I can't reproduce your issue on the latest version either. I tried both the default block editor and the specific Gutenberg plugin, but both don't show problems.

Djennez avatar Nov 25 '20 12:11 Djennez

Here are two screenshots @Djennez

GutenbergInteraction The one above refers to several interaction with the gutenberg interface. I've scrolled the content, edited and re-arranged some blocks.

The one below shows what happens if I repeteately mouse over/out the Yoast Google Preview thumbnail.

GooglePreviewInteraction

As you can see in both cases there are tons of request for the mt-sample-background-1024x683.jpg image which is the first image in the content.

kuoko avatar Nov 26 '20 09:11 kuoko

Hmmm ok, very strange. Hopefully more people will be able to recognize and add to this discussion. Then, maybe we can find out why this happens.

Djennez avatar Nov 26 '20 09:11 Djennez