hi,I set a background to my body tag.i want to preload its image so that when my page get refreshed its background doesnt load twice and be stable in viewing because of load delay, How can I Do this?!
i want to preload its image so that when my page get refreshed its background doesnt load twice and be stable in viewing because of load delay, How can I Do this?!
It's not possible. When your page get refreshed, your HTML gets load again so it will load the image agian too. You have to keep the image in a seperate div and include the page in an iframe if you need to do this.
i want to preload its image so that when my page get refreshed its background doesnt load twice and be stable in viewing because of load delay, How can I Do this?!
It's not possible. When your page get refreshed, your HTML gets load again so it will load the image agian too. You have to keep the image in a seperate div and include the page in an iframe if you need to do this.
behzad306
Member
19 Points
34 Posts
How To Preload My Body Tag BackGround Image?!
Nov 22, 2012 06:51 AM|LINK
hi,I set a background to my body tag.i want to preload its image so that when my page get refreshed its background doesnt load twice and be stable in viewing because of load delay, How can I Do this?!
thanks in Advance
oned_gk
All-Star
35988 Points
7348 Posts
Re: How To Preload My Body Tag BackGround Image?!
Nov 22, 2012 07:14 AM|LINK
http://perishablepress.com/3-ways-preload-images-css-javascript-ajax/
Suwandi - Non Graduate Programmer
behzad306
Member
19 Points
34 Posts
Re: How To Preload My Body Tag BackGround Image?!
Nov 22, 2012 07:20 AM|LINK
thanks but this method doesnt work for body tag,i have preloaded my baner div with this method but this for my body tag doesnt work!
oned_gk
All-Star
35988 Points
7348 Posts
Re: How To Preload My Body Tag BackGround Image?!
Nov 22, 2012 07:44 AM|LINK
http://www.pageresource.com/jscript/jpreload.htm
Suwandi - Non Graduate Programmer
Ruchira
All-Star
44303 Points
7185 Posts
MVP
Re: How To Preload My Body Tag BackGround Image?!
Nov 23, 2012 12:07 PM|LINK
Hello,
It's not possible. When your page get refreshed, your HTML gets load again so it will load the image agian too. You have to keep the image in a seperate div and include the page in an iframe if you need to do this.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.behzad306
Member
19 Points
34 Posts
Re: How To Preload My Body Tag BackGround Image?!
Nov 27, 2012 05:16 PM|LINK
could u more explain?