BJ Lazy Load - Version 0.6.4

Version Description

Disable when viewing printable page from WP-Print

Download this release

Release Info

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

Code changes from version 0.6.3 to 0.6.4

Files changed (2) hide show
  1. bj-lazy-load.php +7 -3
  2. readme.txt +8 -2
bj-lazy-load.php CHANGED
@@ -3,7 +3,7 @@
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.3
7
  Author: Bjørn Johansen
8
  Author URI: http://twitter.com/bjornjohansen
9
  License: GPL2
@@ -31,14 +31,18 @@ require_once( dirname(__FILE__) . '/scb/load.php' );
31
  if ( ! class_exists( 'BJLL' ) ) {
32
  class BJLL {
33
 
34
- const version = '0.6.3';
35
  protected $_placeholder_url;
36
  protected $_skip_classes;
37
 
38
  protected static $_instance;
39
 
40
  function __construct() {
41
-
 
 
 
 
42
 
43
  $options = self::_get_options();
44
 
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
31
  if ( ! class_exists( 'BJLL' ) ) {
32
  class BJLL {
33
 
34
+ const version = '0.6.4';
35
  protected $_placeholder_url;
36
  protected $_skip_classes;
37
 
38
  protected static $_instance;
39
 
40
  function __construct() {
41
+
42
+ // Disable when viewing printable page from WP-Print
43
+ if ( intval( get_query_var( 'print' ) ) == 1 || intval( get_query_var( 'printpage' ) ) == 1 ) {
44
+ return;
45
+ }
46
 
47
  $options = self::_get_options();
48
 
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.3
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,7 +57,10 @@ 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.3 =
63
  * Detects WPTouch Pro as well
@@ -144,6 +147,9 @@ Check your HTML source or see the magic at work in Web Inspector, FireBug or sim
144
  * It works (or at least it does for me)
145
 
146
  == Upgrade Notice ==
 
 
 
147
 
148
  = 0.6.0 =
149
  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.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
  = 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
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.