I am having a spritesheet now what i want to do is to preload the spritesheet images how can i get through it using javascript.Please help me out.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not HTML5 nor specifically jQuery related. A sprite sheet is just an image, so preload like you would any other image. That said, a “jQuery way” would be:
Voila.