Changeset 2255950
- Timestamp:
- 03/07/2020 01:56:14 AM (6 years ago)
- Location:
- wp-lazy-load-images/trunk
- Files:
-
- 2 edited
-
jq_img_lazy_load.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lazy-load-images/trunk/jq_img_lazy_load.php
r1347139 r2255950 21 21 22 22 function action_header() { 23 echo <<<EOF 24 <style type='text/css'> 25 img.lazy { display: none; } 26 </style> 27 28 EOF; 29 } 23 24 echo "<style type='text/css'>img.lazy { display: none; }</style>" ; 25 } 30 26 31 27 function action_enqueue_scripts() { … … 69 65 } 70 66 71 echo <<<EOF 72 <script type="text/javascript"> 73 (function($){ 74 $("img.lazy").show().lazyload({effect: "fadeIn"}); 75 })(jQuery); 76 </script> 77 78 EOF; 67 echo '<script type="text/javascript"> 68 (function($){ 69 $("img.lazy").show().lazyload({effect: "fadeIn"}); 70 })(jQuery); 71 </script>'; 79 72 } 80 73 } -
wp-lazy-load-images/trunk/readme.txt
r1347140 r2255950 2 2 Contributors: Shoaib 3 3 Tags: images, jQuery, JavaScript, optimization, Lazylaoding, Lazy Load Wordpress, Lazy Load Jquery 4 Requires at least: 3.55 Tested up to: 4.06 Stable tag: 1.04 Requires at least: 5.3 5 Tested up to: 5.3.2 6 Stable tag: 3.0 7 7 8 8 Add jQuery lazy loading to images … … 10 10 == Description == 11 11 12 Add lazy loading to WP, more info at http://www.appelsiini.net/projects/lazyload12 Add lazy loading to your website and that will make your websites faster and your images will be load as after your website get load. 13 13 14 14 == Installation == 15 15 16 Unzip archive to wp-content/plugins directory, and activate it in Plugins page in wp-admin 16 1. Go to website admin and click add new plugin then simply search with the name of 'jQuery Image Lazy Load WP' click on install and activate. 17 18 2. Unzip archive to wp-content/plugins directory, and activate it in Plugins page in wp-admin
Note: See TracChangeset
for help on using the changeset viewer.