Created
April 3, 2018 16:56
-
-
Save djrmom/6888958e09c8f33b77bd9b6e3127501c to your computer and use it in GitHub Desktop.
facetwp jetpack lazy load compat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** reinitializing jetpack's lazy load after facet loads **/ | |
| add_action( 'wp_head', function() { | |
| ?> | |
| <script> | |
| (function($) { | |
| $(document).on('facetwp-loaded', function() { | |
| jetpackLazyImagesModule( $ ); | |
| }); | |
| })(jQuery); | |
| </script> | |
| <?php | |
| }, 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment