Changeset 2553181
- Timestamp:
- 06/24/2021 07:32:09 AM (5 years ago)
- Location:
- wp-lozad/trunk
- Files:
-
- 3 edited
-
js/lozad.js (modified) (1 diff)
-
lozad.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lozad/trunk/js/lozad.js
r2552723 r2553181 67 67 element.setAttribute('srcset', dataSrcset); 68 68 if (isIE && element.nodeName.toLowerCase() === 'img') { 69 element.setAttribute('src', dataSrcset.split(',').pop().replace(/1x/i, '').trim()); 69 var ieImgSrc = null; 70 dataSrcset.split(',').map(function(e) { 71 if (e.indexOf(' 1x') !== -1) { 72 ieImgSrc = e.replace(/1x/i, '').trim(); 73 return true; 74 } 75 }); 76 if (ieImgSrc) { 77 element.setAttribute('src', ieImgSrc); 78 } 70 79 } 71 80 } -
wp-lozad/trunk/lozad.php
r2552723 r2553181 4 4 Description: lazy loading of images by baroda algorithm 5 5 Author: Evgeniy Kozenok 6 Version: 1.4. 66 Version: 1.4.7 7 7 */ 8 8 -
wp-lozad/trunk/readme.txt
r2552723 r2553181 4 4 Requires at least: 5.0 5 5 Tested up to: 5.5 6 Stable tag: 1.4. 66 Stable tag: 1.4.7 7 7 License: GPL2 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 24 24 25 25 == Changelog == 26 = 1.4.7 = 27 * 2021-06-24: IE img src 28 26 29 = 1.4.6 = 27 30 * 2021-06-23: IE js supported
Note: See TracChangeset
for help on using the changeset viewer.