forked from tuupola/lazyload
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,353 additions
and
1,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,110 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta charset="utf-8"> | ||
<title>Lazy Load Disabled</title> | ||
<meta name="generator" content="Mephisto" /> | ||
<link href="http://www.appelsiini.net/stylesheets/main2.css" rel="stylesheet" type="text/css" /> | ||
<link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/tuupola" title="Atom feed" /> | ||
<script type="text/javascript" charset="utf-8"> | ||
</script> | ||
<style type="text/css"> | ||
#sidebar { | ||
width: 0px; | ||
} | ||
|
||
#content { | ||
width: 770px; | ||
} | ||
|
||
</style> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link type="text/css" media="screen" href="http://www.appelsiini.net/css/appelsiini.css" rel="stylesheet"> | ||
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet"> | ||
<link rel="shortcut icon" href="http://www.appelsiini.net/img/favicon.ico"> | ||
<!--[if lt IE 9]> | ||
<script src="js/html5shiv.js"></script> | ||
<![endif]--> | ||
<script> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-190966-1']); | ||
_gaq.push(['_trackPageview']); | ||
_gaq.push(['_trackPageLoadTime']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
//<![CDATA[ | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-190966-1']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
//]]> | ||
</script> | ||
|
||
<style type="text/css"> | ||
.container img { | ||
margin-bottom: 10px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="wrap"> | ||
<div id="header"> | ||
<div class="jumbotron"> | ||
<div class="container"> | ||
<div class="col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2"> | ||
<h1>Lazy Load Plugin for jQuery</h1> | ||
<a href="http://www.appelsiini.net/"><span class="label label-info">Blog</span></a> | ||
<a href="http://www.appelsiini.net/projects"><span class="label label-danger">Projects</span></a> | ||
<br> | ||
<div> | ||
<iframe src="http://ghbtns.com/github-btn.html?user=tuupola&repo=jquery_lazyload&type=watch&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="92" height="30"></iframe> | ||
<iframe src="http://ghbtns.com/github-btn.html?user=tuupola&repo=jquery_lazyload&type=fork&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container"> | ||
<div class="col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2"> | ||
<h2>Plugin disabled</h2> | ||
<p> | ||
<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> | ||
--> | ||
</ul> | ||
All images are loaded. Page takes long time to load. Shift-reload to test again. | ||
But wait there is more! You can also lazy load <a href="enabled_wide.html">sideways</a> or | ||
<a href="enabled_gazillion.html">gazillion images</a>. | ||
</p> | ||
</div> | ||
<div id="content"> | ||
|
||
<h2>Plugin disabled</h2> | ||
<div class="entry"> | ||
|
||
<p> | ||
All images are loaded. Page takes long time to load. Shift-reload to test again. | ||
But wait there is more! You can also lazy load <a href="enabled_wide.html">sideways</a> or | ||
<a href="enabled_gazillion.html">gazillion images</a>. | ||
</p> | ||
|
||
<img src="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood"><br/> | ||
<img src="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side"><br/> | ||
<img src="img/viper_1.jpg" width="765" height="574" alt="Viper 1"><br/> | ||
<img src="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner"><br/> | ||
<img src="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT"><br/> | ||
<img src="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop"><br/> | ||
<img class="img-responsive" src="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood"><br> | ||
<img class="img-responsive" src="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side"><br> | ||
<img class="img-responsive" src="img/viper_1.jpg" width="765" height="574" alt="Viper 1"><br> | ||
<img class="img-responsive" src="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner"><br> | ||
<img class="img-responsive" src="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT"><br> | ||
<img class="img-responsive" src="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop"><br> | ||
|
||
</div> | ||
<div id="sidebar"> | ||
|
||
</div> | ||
|
||
<div id="footer"> | ||
<div class="bottom-menu bottom-menu-large bottom-menu-inverse"> | ||
<div class="container"> | ||
<div class="col-md-offset-1 col-lg-offset-2"> | ||
<div class="col-sm-3 col-md-2"> | ||
<h5 class="title">CATEGORIES</h5> | ||
<ul class="bottom-links"> | ||
<li><a href="http://www.appelsiini.net/javascript">JavaScript</a></li> | ||
<li><a href="http://www.appelsiini.net/ruby">Ruby</a></li> | ||
<li><a href="http://www.appelsiini.net/avr">AVR</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-sm-3 col-md-2"> | ||
<h5 class="title">PROJECTS</h5> | ||
<ul class="bottom-links"> | ||
<li><a href="http://www.appelsiini.net/projects/lazyload">Lazy Load</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/chained">Chained</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/jeditable">Jeditable</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/viewport">Viewport</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/rack-facebook-methodfix">Facebook Methodfix</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/rack-funky-cache">Funky Cache</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-sm-3 col-md-2"> | ||
<h5 class="title">ABOUT</h5> | ||
<ul class="bottom-links"> | ||
<li><a data-action="GitHub" data-label="footer" href="https://github.com/tuupola" class="icon-github-sign icon-large track"> GitHub</a></li> | ||
<li><a data-action="Twitter" data-label="footer" href="https://twitter.com/tuupola" class="icon-twitter-sign icon-large track"> Twitter</a></li> | ||
<li><a data-action="Google+" data-label="footer" href="https://plus.google.com/114333901699201512043?rel=author" class="icon-google-plus-sign icon-large track"> Google+</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-sm-3 col-md-5 col-lg-4"> | ||
Built using the awesome <a class="track" data-action="Designmodo" data-label="footer" style="color: #ffffff;" href="http://designmodo.com/flat/?u=583">Flat UI Pro</a> framework by Designmodo. | ||
<br><br> | ||
© 2013 Mika Tuupola. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | ||
<script src="http://www.appelsiini.net/js/demo.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,123 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta charset="utf-8"> | ||
<title>Lazy Load Enabled</title> | ||
<meta name="generator" content="Mephisto" /> | ||
<link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/tuupola" title="Atom feed" /> | ||
<link href="http://www.appelsiini.net/stylesheets/main2.css" rel="stylesheet" type="text/css" /> | ||
<style type="text/css"> | ||
#sidebar { | ||
width: 0px; | ||
} | ||
|
||
#content { | ||
width: 770px; | ||
} | ||
|
||
</style> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link type="text/css" media="screen" href="http://www.appelsiini.net/css/appelsiini.css" rel="stylesheet"> | ||
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet"> | ||
<link rel="shortcut icon" href="http://www.appelsiini.net/img/favicon.ico"> | ||
<!--[if lt IE 9]> | ||
<script src="js/html5shiv.js"></script> | ||
<![endif]--> | ||
<script> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-190966-1']); | ||
_gaq.push(['_trackPageview']); | ||
_gaq.push(['_trackPageLoadTime']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
//<![CDATA[ | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-190966-1']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
//]]> | ||
</script> | ||
<style type="text/css"> | ||
.container img { | ||
margin-bottom: 10px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="wrap"> | ||
<div id="header"> | ||
<p> | ||
<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> | ||
--> | ||
</ul> | ||
</p> | ||
<body> | ||
<div class="jumbotron"> | ||
<div class="container"> | ||
<div class="col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2"> | ||
<h1>Lazy Load Plugin for jQuery</h1> | ||
<a href="http://www.appelsiini.net/"><span class="label label-info">Blog</span></a> | ||
<a href="http://www.appelsiini.net/projects"><span class="label label-danger">Projects</span></a> | ||
<br> | ||
<div> | ||
<iframe src="http://ghbtns.com/github-btn.html?user=tuupola&repo=jquery_lazyload&type=watch&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="92" height="30"></iframe> | ||
<iframe src="http://ghbtns.com/github-btn.html?user=tuupola&repo=jquery_lazyload&type=fork&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="content"> | ||
</div> | ||
|
||
<div class="container"> | ||
<div class="col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2"> | ||
|
||
<h2>Plugin enabled</h2> | ||
<div class="entry"> | ||
|
||
<p> | ||
Images below the fold (the ones lower than window bottom) are not loaded. When scrolling down | ||
they are loaded when needed. Empty cache and shift-reload to test again. Compare this to page | ||
where plugin is <a href="disabled.html">disabled</a>, same page with | ||
<a href="enabled_fadein.html">fadein effect</a>, page with <a href="enabled_wide.html">wide | ||
layout</a> or wide content <a href="enabled_wide_container.html">inside container</a>. | ||
</p> | ||
<h2>Plugin enabled</h2> | ||
<p> | ||
Images below the fold (the ones lower than window bottom) are not loaded. When scrolling down | ||
they are loaded when needed. Empty cache and shift-reload to test again. Compare this to page | ||
where plugin is <a href="disabled.html">disabled</a>, same page with | ||
<a href="enabled_fadein.html">fadein effect</a>, page with <a href="enabled_wide.html">wide | ||
layout</a> or wide content <a href="enabled_wide_container.html">inside container</a>. | ||
</p> | ||
|
||
<code> | ||
<pre> $("img.lazy").lazyload();</pre> | ||
<pre> <img class="lazy" src="img/grey.gif" data-original="img/example.jpg" width="765" height="574"></pre> | ||
</code> | ||
<pre class="prettyprint">$("img.lazy").lazyload();</pre> | ||
<pre class="prettyprint"><img class="lazy" data-original="img/example.jpg" width="765" height="574"></pre> | ||
|
||
<div id="container"> | ||
<img class="lazy" src="img/grey.gif" data-original="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood"><br/> | ||
<img class="lazy" src="img/grey.gif" data-original="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side"><br/> | ||
<img class="lazy" src="img/grey.gif" data-original="img/viper_1.jpg" width="765" height="574" alt="Viper 1"><br/> | ||
<img class="lazy" src="img/grey.gif" data-original="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner"><br/> | ||
<img class="lazy" src="img/grey.gif" data-original="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT"><br/> | ||
<img class="lazy" src="img/grey.gif" data-original="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop"><br/> | ||
<div id="container"> | ||
<img class="lazy img-responsive" data-original="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood"><br/> | ||
<img class="lazy img-responsive" data-original="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side"><br/> | ||
<img class="lazy img-responsive" data-original="img/viper_1.jpg" width="765" height="574" alt="Viper 1"><br/> | ||
<img class="lazy img-responsive" data-original="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner"><br/> | ||
<img class="lazy img-responsive" data-original="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT"><br/> | ||
<img class="lazy img-responsive" data-original="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop"><br/> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div id="sidebar"> | ||
|
||
</div> | ||
|
||
<div id="footer"> | ||
<div class="bottom-menu bottom-menu-large bottom-menu-inverse"> | ||
<div class="container"> | ||
<div class="col-md-offset-1 col-lg-offset-2"> | ||
<div class="col-sm-3 col-md-2"> | ||
<h5 class="title">CATEGORIES</h5> | ||
<ul class="bottom-links"> | ||
<li><a href="http://www.appelsiini.net/javascript">JavaScript</a></li> | ||
<li><a href="http://www.appelsiini.net/ruby">Ruby</a></li> | ||
<li><a href="http://www.appelsiini.net/avr">AVR</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-sm-3 col-md-2"> | ||
<h5 class="title">PROJECTS</h5> | ||
<ul class="bottom-links"> | ||
<li><a href="http://www.appelsiini.net/projects/lazyload">Lazy Load</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/chained">Chained</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/jeditable">Jeditable</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/viewport">Viewport</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/rack-facebook-methodfix">Facebook Methodfix</a></li> | ||
<li><a href="http://www.appelsiini.net/projects/rack-funky-cache">Funky Cache</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-sm-3 col-md-2"> | ||
<h5 class="title">ABOUT</h5> | ||
<ul class="bottom-links"> | ||
<li><a data-action="GitHub" data-label="footer" href="https://github.com/tuupola" class="icon-github-sign icon-large track"> GitHub</a></li> | ||
<li><a data-action="Twitter" data-label="footer" href="https://twitter.com/tuupola" class="icon-twitter-sign icon-large track"> Twitter</a></li> | ||
<li><a data-action="Google+" data-label="footer" href="https://plus.google.com/114333901699201512043?rel=author" class="icon-google-plus-sign icon-large track"> Google+</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-sm-3 col-md-5 col-lg-4"> | ||
Built using the awesome <a class="track" data-action="Designmodo" data-label="footer" style="color: #ffffff;" href="http://designmodo.com/flat/?u=583">Flat UI Pro</a> framework by Designmodo. | ||
<br><br> | ||
© 2013 Mika Tuupola. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" charset="utf-8"></script> | ||
<script src="jquery.lazyload.js?v=1.9.0" charset="utf-8"></script> | ||
|
||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | ||
<script src="jquery.lazyload.js?v=1.9.0"></script> | ||
<script src="http://www.appelsiini.net/js/all.js"></script> | ||
<script type="text/javascript" charset="utf-8"> | ||
$(function() { | ||
$("img.lazy").lazyload(); | ||
}); | ||
$(function() { | ||
$("img.lazy").lazyload(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.