Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

95 lines (79 sloc) 3.11 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 Enabled on Container</title>
<meta name="generator" content="Mephisto" />
<link href="" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/atom+xml" href="" title="Atom feed" />
<script src="" type="text/javascript" charset="utf-8"></script>
<script src="jquery.lazyload.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("img").lazyload({placeholder : "img/grey.gif", container: $("#container")});
<style type="text/css">
#sidebar {
width: 0px;
#content {
width: 804px;
#container {
height: 600px;
overflow: scroll;
<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 on container</h2>
<div class="entry">
Images below the visible area (the ones lower than container bottom) are not loaded. When scrolling down
they are loaded when needed. Shift-reload to test again. Compare this to page where plugin is
<a href="disabled.html">disabled</a> or same page with <a href="enabled_fadein.html">fadein effect</a>.
placeholder : "img/grey.gif",
container: $("#container")
<div id="container">
<img src="img/bmw_m1_hood.jpg?<?php print time() ?>" width="765" height="574" alt="BMW M1 Hood"><br/>
<img src="img/bmw_m1_side.jpg?<?php print time() ?>" width="765" height="574" alt="BMW M1 Side"><br/>
<img src="img/viper_1.jpg?<?php print time() ?>" width="765" height="574" alt="Viper 1"><br/>
<img src="img/viper_corner.jpg?<?php print time() ?>" width="765" height="574" alt="Viper Corner"><br/>
<img src="img/bmw_m3_gt.jpg?<?php print time() ?>" width="765" height="574" alt="BMW M3 GT"><br/>
<img src="img/corvette_pitstop.jpg?<?php print time() ?>" width="765" height="574" alt="Corvette Pitstop"><br/>
<div id="sidebar">
<div id="footer">
<script src="/mint/?js" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
Jump to Line
Something went wrong with that request. Please try again.