enabled_wide.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title>Lazy Load Enabled on Wide Page</title>
  6. <meta name="generator" content="Mephisto" />
  7. <link href="http://www.appelsiini.net/stylesheets/main2.css" rel="stylesheet" type="text/css" />
  8. <link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/tuupola" title="Atom feed" />
  9. <style type="text/css">
  10. #sidebar {
  11. width: 0px;
  12. }
  13. #content {
  14. width: 4750px;
  15. }
  16. </style>
  17. <script>
  18. var _gaq = _gaq || [];
  19. _gaq.push(['_setAccount', 'UA-190966-1']);
  20. _gaq.push(['_trackPageview']);
  21. _gaq.push(['_trackPageLoadTime']);
  22. (function() {
  23. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  24. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  25. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  26. })();
  27. </script>
  28. </head>
  29. <body>
  30. <div id="wrap">
  31. <div id="header">
  32. <p>
  33. <h1>Lazy Load</h1><br />
  34. <small>Image lazy loader plugin for jQuery.</small>
  35. <ul id="nav">
  36. <li id="first"><a href="/" class="active">weblog</a></li>
  37. <li><a href="/projects" class="last">projects</a></li>
  38. <!--
  39. <li><a href="/cv" class="last">cv</a></li>
  40. -->
  41. </ul>
  42. </p>
  43. </div>
  44. <div id="content">
  45. <h2>Plugin enabled on Wide Page</h2>
  46. <div class="entry">
  47. <p>
  48. Images right of the fold are not loaded. When scrolling left they are loaded when needed.
  49. Shift-reload to test again. Compare this to page where plugin is
  50. <a href="disabled.html">disabled</a> or page with
  51. <a href="enabled_gazillion.html">gazillion images</a>.
  52. </p>
  53. <code>
  54. <pre>
  55. $("img").lazyload({
  56. effect: "fadeIn"
  57. });</pre>
  58. </code>
  59. <img src="img/grey.gif" data-original="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood">
  60. <img src="img/grey.gif" data-original="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side">
  61. <img src="img/grey.gif" data-original="img/viper_1.jpg" width="765" height="574" alt="Viper 1">
  62. <img src="img/grey.gif" data-original="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner">
  63. <img src="img/grey.gif" data-original="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT">
  64. <img src="img/grey.gif" data-original="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop">
  65. </div>
  66. <div id="sidebar">
  67. </div>
  68. <div id="footer">
  69. </div>
  70. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" charset="utf-8"></script>
  71. <script src="jquery.lazyload.js?v=1.8.3" charset="utf-8"></script>
  72. <script type="text/javascript" charset="utf-8">
  73. $(function() {
  74. $("img").lazyload({effect: "fadeIn"});
  75. });
  76. </script>
  77. </body>
  78. </html>