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

Images being loaded up to 4 times #1170

Open
imornar opened this issue Apr 5, 2018 · 8 comments
Open

Images being loaded up to 4 times #1170

imornar opened this issue Apr 5, 2018 · 8 comments

Comments

@imornar
Copy link

imornar commented Apr 5, 2018

Safari browser load current image multiple times (up to 4 times)

sandbox: https://codesandbox.io/s/xr3mmz7mjq

When you open network tab and refresh sandbox browser notice that images are being loaded 4 times.
Also sliding thru images loads upcoming image twice

This is significant issue for me since I have 30+ sliders on page and it loads alot of unnecessary assets

@laveesingh
Copy link
Contributor

No such issue exists with Chrome. I'm yet to test it with Safari.

@jackyef
Copy link

jackyef commented Apr 7, 2018

I can confirm that the images are only loaded once on mac safari 11.0.3.

@imornar
Copy link
Author

imornar commented Apr 10, 2018

Humm.. If you run my codesandbox code in Safari and refresh page you should see it also:
screen shot 2018-04-10 at 20 00 34

@laveesingh
Copy link
Contributor

Are you sure these requests are not for different images?

@r3dDoX
Copy link

r3dDoX commented Apr 24, 2018

I can confirm this. Tried with current Safari (Version 11.1 (13605.1.33.1.2)) on macOS High Sierra. Images are loaded multiple times, I see very varying results where it can be loaded up to 11 times

@r3dDoX
Copy link

r3dDoX commented May 3, 2018

I just tested this with Safari Technology Preview. There I can't see this behaviour. So probably this error will be gone in the next update of Safari

@dj0nes
Copy link

dj0nes commented Jan 11, 2019

This issue is occurring again with safari 12 on desktop and mobile.

Additionally, when lazyLoad is set to "progressive" each image load causes a reload of all previously loaded images. The problem is visible in the original post's sandbox.

@athimannil
Copy link

Any solution found so far ?

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

6 participants