Skip to content

Commit

Permalink
bumped jquery version
Browse files Browse the repository at this point in the history
  • Loading branch information
ayn committed May 25, 2011
1 parent c9af37f commit 341f878
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions jq_img_lazy_load.php
Expand Up @@ -4,17 +4,17 @@
Plugin Name: jQuery lazy load plugin
Plugin URI: http://github.com/ayn/wp-jquery-lazy-load/
Description: a quick and dirty wordpress plugin to enable image lazy loading.
Version: v0.10
Version: v0.11
Author: Andrew Ng
Author URI: http://blog.andrewng.com
*/

function jquery_lazy_load_headers() {
$plugin_path = plugins_url('/', __FILE__);
$lazy_url = $plugin_path . 'javascripts/jquery.lazyload.mini.js';
$jq_url = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js';
$jq_url = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js';
wp_deregister_script('jquery');
wp_enqueue_script('jquery', $jq_url, false, '1.4.2');
wp_enqueue_script('jquery', $jq_url, false, '1.6.1');
wp_enqueue_script('jquerylazyload', $lazy_url, 'jquery', '1.5.0');
}

Expand All @@ -24,7 +24,7 @@ function jquery_lazy_load_ready() {
<script type="text/javascript">
jQuery(document).ready(function($){
if (navigator.platform == "iPad") return;
jQuery("img").lazyload({
jQuery("#content img").lazyload({
effect:"fadeIn",
placeholder: "$placeholdergif"
});
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Expand Up @@ -3,7 +3,7 @@ Contributors: ayn
Tags: images, jquery, javascript, optimization
Requires at least: 2.8
Tested up to: 2.9.2
Stable tag: 0.10
Stable tag: 0.11

add jquery lazy loading to images

Expand Down

0 comments on commit 341f878

Please sign in to comment.