Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

102 lines (88 sloc) 3.44 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Lazy Load Images After 5 Second Timeout</title>
<meta name="generator" content="Mephisto" />
<link href="" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/atom+xml" href="" title="Atom feed" />
<style type="text/css">
#sidebar {
width: 0px;
#content {
width: 770px;
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
<div id="wrap">
<div id="header">
<h1>Lazy Load</h1><br />
<small>Image lazy loader plugin for jQuery.</small>
<ul id="nav">
<li id="first"><a href="/" class="active">weblog</a></li>
<li><a href="/projects" class="last">projects</a></li>
<li><a href="/cv" class="last">cv</a></li>
<div id="content">
<h2>Plugin enabled</h2>
<div class="entry">
Here <a href="">Lazy Load</a>
plugin is enabled. Images are not loaded. Timeout will trigger five seconds after
all other elements of page have been loaded.
$(function() {
event : "sporty"
$(window).bind("load", function() {
var timeout = setTimeout(function() { $("img").trigger("sporty") }, 5000);
<img src="img/grey.gif" data-original="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood"><br/>
<img src="img/grey.gif" data-original="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side"><br/>
<img src="img/grey.gif" data-original="img/viper_1.jpg" width="765" height="574" alt="Viper 1"><br/>
<img src="img/grey.gif" data-original="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner"><br/>
<img src="img/grey.gif" data-original="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT"><br/>
<img src="img/grey.gif" data-original="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop"><br/>
<div id="sidebar">
<div id="footer">
<script src="" type="text/javascript" charset="utf-8"></script>
<script src="jquery.lazyload.js?v=4" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
event : "sporty"
$(window).bind("load", function() {
var timeout = setTimeout(function() { $("img").trigger("sporty"); }, 5000);
Jump to Line
Something went wrong with that request. Please try again.