maguskrool
Technical User
Hi everyone.
I'm building a website with a gallery that shows one image at a time. So I load the first one and I figured that I as soon as that one finishes loading, I should load the second one, because it's likely the user will at least see one more. Then when the user selects the second one, I load the 3rd one, and so forth.
I'm not big on memory usage, but from what I gathered I should unload the images I don't need, so when the 3rd image loads, perhaps I should unload the 1st one. Hope this isn't becoming too confusing. Basically you load the image next to the current item and unload any that aren't the next or the previous items.
What I want to know is, if I unload an image and then need to load it again, the browser will look for it on the user's hard drive, and not download it again, right?
Thanks for your help.
I'm building a website with a gallery that shows one image at a time. So I load the first one and I figured that I as soon as that one finishes loading, I should load the second one, because it's likely the user will at least see one more. Then when the user selects the second one, I load the 3rd one, and so forth.
I'm not big on memory usage, but from what I gathered I should unload the images I don't need, so when the 3rd image loads, perhaps I should unload the 1st one. Hope this isn't becoming too confusing. Basically you load the image next to the current item and unload any that aren't the next or the previous items.
What I want to know is, if I unload an image and then need to load it again, the browser will look for it on the user's hard drive, and not download it again, right?
Thanks for your help.