Description
After opening and closing the Lightbox of the Image block, the page is stuck when the image for the Lightbox is not loaded in time. If the image is already loaded and opens immediately, this is not happening.
Step-by-step reproduction instructions
- Open Developer Tools in a browser
- Go to: https://asia.wordcamp.org/2026/contributor-day/
- Click on an image in the post.
- Nothing is happening for a long time - image is loading.
- The image is opened.
- Click to close the image.
- Try to scroll the page—it resists and returns to the place when the lightbox was.
- Try to open and close the lightbox several times.
- Go to the Network tab and notice that the image was requested multiple times.
Screenshots, screen recording, code snippet
Environment info
WordPress 6.9.1-alpha-61393
Gutenberg 22.3.0
Twenty Twenty-Four 1.3 theme
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.