Skip to content

Commit c9af37f

Browse files
author
Andrew Y Ng
committed
not lazyloading on iPad
1 parent c1605e0 commit c9af37f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jq_img_lazy_load.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: jQuery lazy load plugin
55
Plugin URI: http://github.com/ayn/wp-jquery-lazy-load/
66
Description: a quick and dirty wordpress plugin to enable image lazy loading.
7-
Version: v0.9
7+
Version: v0.10
88
Author: Andrew Ng
99
Author URI: http://blog.andrewng.com
1010
*/
@@ -23,6 +23,7 @@ function jquery_lazy_load_ready() {
2323
echo <<<EOF
2424
<script type="text/javascript">
2525
jQuery(document).ready(function($){
26+
if (navigator.platform == "iPad") return;
2627
jQuery("img").lazyload({
2728
effect:"fadeIn",
2829
placeholder: "$placeholdergif"

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: ayn
33
Tags: images, jquery, javascript, optimization
44
Requires at least: 2.8
55
Tested up to: 2.9.2
6-
Stable tag: 0.9
6+
Stable tag: 0.10
77

88
add jquery lazy loading to images
99

0 commit comments

Comments
 (0)