i am trying to make a slider here in javascript
and what am i trying to do is i am trying to have a single div and use the background image as the image placeholder which has the background size and cover property.
And i am trying to use navigation keys for loading previous and next images.
Now the problem is that how can i preload
some images and use then as in Bg
property so that when i click the next arrow, the images do not have to wait for the next image as background for the div to load. Thanks.
Asked
Active
Viewed 23 times
0

Cloudboy22
- 1,496
- 5
- 21
- 39
1 Answers
0
I have found a similar problem in this link:

Community
- 1
- 1

Fernando Souza
- 1,748
- 1
- 20
- 36
-
Yeah Biut when i click next button won't it take time to load the next image as background as opposed to the images in html which are already loaded. thanks. – Cloudboy22 Sep 18 '15 at 03:38
-
I found something similar to your question here: http://stackoverflow.com/questions/1373142/preloading-css-images – Fernando Souza Sep 18 '15 at 03:41