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

Visiting a page with lazy loaded images tries to download everything on Firefox #1084

Open
fauno opened this issue Nov 28, 2023 · 1 comment

Comments

@fauno
Copy link

fauno commented Nov 28, 2023

I have a page with lots of lazy loaded images. If I visit it directly, Firefox detects they're lazy loaded and fetches them while I'm scrolling. But if I visit the page via Turbo, by loading another page and clicking a link that leads to the page with images, Firefox starts fetching every image.

The Network tabs shows the fetch was initiated by "lazy-imageset" (the lazy queue I guess).

I was on Turbo 7.2 but upgrading to 7.3 produces the same effect and I didn't find anything related to lazy loading on Firefox anyway on issues, though I wonder if it's similar to smooth scrolling #426

Chrome works as expected.

@fauno
Copy link
Author

fauno commented Nov 28, 2023

Confirmed it's Turbo-related by adding turbo-visit-control to the page:

<meta name="turbo-visit-control" content="reload">

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

No branches or pull requests

1 participant