Version Description
- 2017-09-16
- Prevent scripts and styles being removed during html parsing
Download this release
Release Info
Developer | wp_media |
Plugin | Lazy Load by WP Rocket |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- readme.txt +7 -3
- rocket-lazy-load.php +11 -3
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
===
|
2 |
Contributors: creativejuiz, tabrisrp, wp_media
|
3 |
Tags: lazyload, lazy load, images, iframes, thumbnail, thumbnails, smiley, smilies, avatar, gravatar
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.8.1
|
6 |
-
Stable tag: 1.3.
|
7 |
|
8 |
The tiny Lazy Load script for WordPress without jQuery, works for images and iframes.
|
9 |
|
@@ -50,8 +50,12 @@ You can also use the filters `rocket_lazyload_excluded_attributes` or `rocket_la
|
|
50 |
Some plugins are not compatible without lazy loading. Please open a support thread, and we will see how we can solve the issue by excluding lazy loading for this plugin.
|
51 |
|
52 |
== Changelog ==
|
|
|
|
|
|
|
|
|
53 |
= 1.3.2 =
|
54 |
-
*2017-09-12
|
55 |
* Fix images not displaying in certain conditions because image attributes exclusion was not working correctly
|
56 |
|
57 |
= 1.3.1 =
|
1 |
+
=== Lazy Load by WP Rocket ===
|
2 |
Contributors: creativejuiz, tabrisrp, wp_media
|
3 |
Tags: lazyload, lazy load, images, iframes, thumbnail, thumbnails, smiley, smilies, avatar, gravatar
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.8.1
|
6 |
+
Stable tag: 1.3.3
|
7 |
|
8 |
The tiny Lazy Load script for WordPress without jQuery, works for images and iframes.
|
9 |
|
50 |
Some plugins are not compatible without lazy loading. Please open a support thread, and we will see how we can solve the issue by excluding lazy loading for this plugin.
|
51 |
|
52 |
== Changelog ==
|
53 |
+
= 1.3.3 =
|
54 |
+
* 2017-09-16
|
55 |
+
* Prevent scripts and styles being removed during html parsing
|
56 |
+
|
57 |
= 1.3.2 =
|
58 |
+
* 2017-09-12
|
59 |
* Fix images not displaying in certain conditions because image attributes exclusion was not working correctly
|
60 |
|
61 |
= 1.3.1 =
|
rocket-lazy-load.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
|
3 |
|
4 |
/**
|
5 |
-
* Plugin Name:
|
6 |
* Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
|
7 |
* Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
8 |
-
* Version: 1.3.
|
9 |
* Requires PHP: 5.4
|
10 |
* Author: WP Media
|
11 |
* Author URI: https://wp-rocket.me
|
@@ -27,7 +27,7 @@ defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
|
|
27 |
* You should have received a copy of the GNU General Public License
|
28 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
29 |
*/
|
30 |
-
define( 'ROCKET_LL_VERSION', '1.3.
|
31 |
define( 'ROCKET_LL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . '/' );
|
32 |
define( 'ROCKET_LL_3RD_PARTY_PATH', ROCKET_LL_PATH . '3rd-party/' );
|
33 |
define( 'ROCKET_LL_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets/' );
|
@@ -193,6 +193,10 @@ function rocket_lazyload_images( $html ) {
|
|
193 |
}
|
194 |
|
195 |
$dom = new PHPHtmlParser\Dom();
|
|
|
|
|
|
|
|
|
196 |
$dom->load( $html );
|
197 |
$images = $dom->getElementsByTag( 'img' );
|
198 |
|
@@ -449,6 +453,10 @@ function rocket_lazyload_iframes( $html ) {
|
|
449 |
}
|
450 |
|
451 |
$dom = new PHPHtmlParser\Dom();
|
|
|
|
|
|
|
|
|
452 |
$dom->load( $html );
|
453 |
$iframes = $dom->getElementsByTag( 'iframe' );
|
454 |
|
2 |
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
|
3 |
|
4 |
/**
|
5 |
+
* Plugin Name: Lazy Load by WP Rocket
|
6 |
* Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
|
7 |
* Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
8 |
+
* Version: 1.3.3
|
9 |
* Requires PHP: 5.4
|
10 |
* Author: WP Media
|
11 |
* Author URI: https://wp-rocket.me
|
27 |
* You should have received a copy of the GNU General Public License
|
28 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
29 |
*/
|
30 |
+
define( 'ROCKET_LL_VERSION', '1.3.3' );
|
31 |
define( 'ROCKET_LL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . '/' );
|
32 |
define( 'ROCKET_LL_3RD_PARTY_PATH', ROCKET_LL_PATH . '3rd-party/' );
|
33 |
define( 'ROCKET_LL_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets/' );
|
193 |
}
|
194 |
|
195 |
$dom = new PHPHtmlParser\Dom();
|
196 |
+
$dom->setOptions( [
|
197 |
+
'removeScripts' => false,
|
198 |
+
'removeStyles' => false,
|
199 |
+
] );
|
200 |
$dom->load( $html );
|
201 |
$images = $dom->getElementsByTag( 'img' );
|
202 |
|
453 |
}
|
454 |
|
455 |
$dom = new PHPHtmlParser\Dom();
|
456 |
+
$dom->setOptions( [
|
457 |
+
'removeScripts' => false,
|
458 |
+
'removeStyles' => false,
|
459 |
+
] );
|
460 |
$dom->load( $html );
|
461 |
$iframes = $dom->getElementsByTag( 'iframe' );
|
462 |
|