-
Notifications
You must be signed in to change notification settings - Fork 61
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
Comments
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
preload next image when showing the current one, so that the user has not to wait for it when he clicks 'next button'
The text was updated successfully, but these errors were encountered: