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.10
7+ Version: v0.11
88 Author: Andrew Ng
99 Author URI: http://blog.andrewng.com
1010 */
1111
1212function jquery_lazy_load_headers () {
1313 $ plugin_path = plugins_url ('/ ' , __FILE__ );
1414 $ lazy_url = $ plugin_path . 'javascripts/jquery.lazyload.mini.js ' ;
15- $ jq_url = 'http ://ajax.googleapis.com/ajax/libs/jquery/1.4.2 /jquery.min.js ' ;
15+ $ jq_url = 'https ://ajax.googleapis.com/ajax/libs/jquery/1.6.1 /jquery.min.js ' ;
1616 wp_deregister_script ('jquery ' );
17- wp_enqueue_script ('jquery ' , $ jq_url , false , '1.4.2 ' );
17+ wp_enqueue_script ('jquery ' , $ jq_url , false , '1.6.1 ' );
1818 wp_enqueue_script ('jquerylazyload ' , $ lazy_url , 'jquery ' , '1.5.0 ' );
1919}
2020
@@ -24,7 +24,7 @@ function jquery_lazy_load_ready() {
2424<script type="text/javascript">
2525jQuery(document).ready(function($){
2626 if (navigator.platform == "iPad") return;
27- jQuery("img").lazyload({
27+ jQuery("#content img").lazyload({
2828 effect:"fadeIn",
2929 placeholder: " $ placeholdergif"
3030 });
0 commit comments