Delayed Image Loader in Javascript

Category > JAVASCRIPT || Published on : Thursday, April 8, 2021 || Views: 2054 || Delayed Image Loader

Here Pawan Kumar will explain how to Delayed Image Loader

<!DOCTYPE html>

<html lang="en" xmlns="">
    <meta charset="utf-8" />
        function runBanner() {
            // change the name of the image below
            document.getElementById('banner').src ='large_img.gif';

        // change the number below to adjust the time the image takes to load
        window.setTimeout("runBanner() ", 5000);
    <img src="small_img.gif" border="0" id="banner">


Download Source Codes