jQuery preload images before page load


Source Code:

<script>
	var images = [
				"img/image_1.jpg",
				"img/image_2.jpg",
				"img/image_3.jpg"
			]'
	$(images).each(function(){
		$("<img/>")[0].src = this;
	});
</script>

Buy us coffee

Reviews and Comments