is this function that i wrote in jquery, will be a good way to preload? thank you
function loader(){ imgTag('#check'); function imgTag(whereToAppend){ var image = 'image.jpg'; $(whereToAppend).append('<img id="imgWrapper">'); $('#imgWrapper').attr('src', image).hide().one('load',function(){ $(this).fadeIn('slow'); }) } }