Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Lazy Load for images or Lazy Load for iframes and videos is enabled lightbox doesn't work. #7309

Open
mifrero opened this issue Feb 17, 2025 · 0 comments

Comments

@mifrero
Copy link

mifrero commented Feb 17, 2025

Describe the bug

On this page, when Lazy Load for images or Lazy Load for iframes and videos are active, when you click on one of the images in the grid, you will get a console error and the lightbox will not open correctly. The issue happens even excluding all the images from Lazy Load.

Uncaught TypeError: Cannot create property 'initialLayout' on boolean 'false'

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://lightslategrey-butterfly-108861.hostingersite.com/lazy-load-issue/
  2. Click on any image of the grid (please, note only Lazy Load is enabled)
  3. Check the error in console https://i.imgur.com/QjJ0OMz.png

Expected behavior
When Lazy Load is disabled, clicking on any grid image opens a lightbox

WP Rocket version 3.18.5.1

Additional context
Testing URL: https://lightslategrey-butterfly-108861.hostingersite.com/lazy-load-issue/

Ticket: https://secure.helpscout.net/conversation/2849226747/540785?viewId=2952229
You will find access to the testing site on the sticky notes.

Related slack discussion: https://wp-media.slack.com/archives/C08N8J6VC/p1739555024261259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant