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

preload next image when showing the current one #18

Open
jakubkowalczyk-pl opened this issue Jun 19, 2014 · 0 comments
Open

preload next image when showing the current one #18

jakubkowalczyk-pl opened this issue Jun 19, 2014 · 0 comments

Comments

@jakubkowalczyk-pl
Copy link
Owner

preload next image when showing the current one, so that the user has not to wait for it when he clicks 'next button'

qurben added a commit to qurben/jgallery that referenced this issue Feb 26, 2020
Preloads the next and previous image when a user navigates to an image.
Preloading happens right after the navigation is done.

Calling load on an already loaded image will not cause the browser to
do another request, this way the method can be called multiple times
without worry.

Uses Promise.all to make sure both images get loaded as fast as
possible.
qurben added a commit to qurben/jgallery that referenced this issue Feb 26, 2020
Preloads the next and previous image when a user navigates to an image.
Preloading happens right after the navigation is done.

Calling load on an already loaded image will not cause the browser to
do another request, this way the method can be called multiple times
without worry.

Uses Promise.all to make sure both images get loaded as fast as
possible.
qurben added a commit to qurben/jgallery that referenced this issue Feb 26, 2020
Preloads the next and previous image when a user navigates to an image.
Preloading happens right after the navigation is done.

Calling load on an already loaded image will not cause the browser to
do another request, this way the method can be called multiple times
without worry.

Uses Promise.all to make sure both images get loaded as fast as
possible.
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