BJ Lazy Load - Version 0.6.5

Version Description

Improved compability with Gravity Forms

Download this release

Release Info

Developer bjornjohansen
Plugin Icon 128x128 BJ Lazy Load
Version 0.6.5
Comparing to
See all releases

Code changes from version 0.6.4 to 0.6.5

Files changed (2) hide show
  1. bj-lazy-load.php +9 -3
  2. readme.txt +17 -11
bj-lazy-load.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: BJ Lazy Load
4
  Plugin URI: http://wordpress.org/extend/plugins/bj-lazy-load/
5
  Description: Lazy image loading makes your site load faster and saves bandwidth.
6
- Version: 0.6.4
7
  Author: Bjørn Johansen
8
  Author URI: http://twitter.com/bjornjohansen
9
  License: GPL2
10
 
11
- Copyright 2011–2012 Bjørn Johansen (email : post@bjornjohansen.no)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
@@ -31,7 +31,7 @@ require_once( dirname(__FILE__) . '/scb/load.php' );
31
  if ( ! class_exists( 'BJLL' ) ) {
32
  class BJLL {
33
 
34
- const version = '0.6.4';
35
  protected $_placeholder_url;
36
  protected $_skip_classes;
37
 
@@ -185,6 +185,12 @@ if ( ! class_exists( 'BJLL' ) ) {
185
  $replace = array();
186
 
187
  foreach ( $matches[0] as $iframeHTML ) {
 
 
 
 
 
 
188
  $replaceHTML = '<img src="' . $this->_placeholder_url . '" class="lazy lazy-hidden" data-lazy-type="iframe" data-lazy-src="' . base64_encode($iframeHTML) . '" alt="">';
189
 
190
  $replaceHTML .= '<noscript>' . $iframeHTML . '</noscript>';
3
  Plugin Name: BJ Lazy Load
4
  Plugin URI: http://wordpress.org/extend/plugins/bj-lazy-load/
5
  Description: Lazy image loading makes your site load faster and saves bandwidth.
6
+ Version: 0.6.5
7
  Author: Bjørn Johansen
8
  Author URI: http://twitter.com/bjornjohansen
9
  License: GPL2
10
 
11
+ Copyright 2011–2013 Bjørn Johansen (email : post@bjornjohansen.no)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
31
  if ( ! class_exists( 'BJLL' ) ) {
32
  class BJLL {
33
 
34
+ const version = '0.6.5';
35
  protected $_placeholder_url;
36
  protected $_skip_classes;
37
 
185
  $replace = array();
186
 
187
  foreach ( $matches[0] as $iframeHTML ) {
188
+
189
+ // Don't mess with the Gravity Forms ajax iframe
190
+ if ( strpos( $iframeHTML, 'gform_ajax_frame' ) ) {
191
+ continue;
192
+ }
193
+
194
  $replaceHTML = '<img src="' . $this->_placeholder_url . '" class="lazy lazy-hidden" data-lazy-type="iframe" data-lazy-src="' . base64_encode($iframeHTML) . '" alt="">';
195
 
196
  $replaceHTML .= '<noscript>' . $iframeHTML . '</noscript>';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: images, iframes, lazy loading, jquery, javascript, optimize, performance,
5
  Author URI: http://twitter.com/bjornjohansen
6
  Requires at least: 3.3
7
  Tested up to: 3.5.1
8
- Stable tag: 0.6.4
9
 
10
  Lazy loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users. Works with both images and iframes.
11
 
@@ -57,13 +57,16 @@ Probably, your theme does not call wp_footer(). Edit the plugin settings to load
57
  = How can I verify that the plugin is working? =
58
  Check your HTML source or see the magic at work in Web Inspector, FireBug or similar.
59
 
60
- == Changelog ==
61
-
62
- = Version 0.6.4 =
63
- * Disable when viewing printable page from WP-Print
64
-
65
- = Version 0.6.3 =
66
- * Detects WPTouch Pro as well
 
 
 
67
 
68
  = Version 0.6.2 =
69
  * Bugfix: Remove notice of undefined constant when SCRIPT_DEBUG isn't defined
@@ -147,9 +150,12 @@ Check your HTML source or see the magic at work in Web Inspector, FireBug or sim
147
  * It works (or at least it does for me)
148
 
149
  == Upgrade Notice ==
150
-
151
- = 0.6.4 =
152
- Disable when viewing printable page from WP-Print
 
 
 
153
 
154
  = 0.6.0 =
155
  Image size adaption. Infinite scroll & WPTouch fixes.
5
  Author URI: http://twitter.com/bjornjohansen
6
  Requires at least: 3.3
7
  Tested up to: 3.5.1
8
+ Stable tag: 0.6.5
9
 
10
  Lazy loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users. Works with both images and iframes.
11
 
57
  = How can I verify that the plugin is working? =
58
  Check your HTML source or see the magic at work in Web Inspector, FireBug or similar.
59
 
60
+ == Changelog ==
61
+
62
+ = Version 0.6.5 =
63
+ * Iframe lazy loading is now compatible with Gravity Forms' ajax forms.
64
+
65
+ = Version 0.6.4 =
66
+ * Disable when viewing printable page from WP-Print
67
+
68
+ = Version 0.6.3 =
69
+ * Detects WPTouch Pro as well
70
 
71
  = Version 0.6.2 =
72
  * Bugfix: Remove notice of undefined constant when SCRIPT_DEBUG isn't defined
150
  * It works (or at least it does for me)
151
 
152
  == Upgrade Notice ==
153
+
154
+ = 0.6.5 =
155
+ Improved compability with Gravity Forms
156
+
157
+ = 0.6.4 =
158
+ Disable when viewing printable page from WP-Print
159
 
160
  = 0.6.0 =
161
  Image size adaption. Infinite scroll & WPTouch fixes.