Changeset 1013263
- Timestamp:
- 10/24/2014 08:45:38 AM (11 years ago)
- Location:
- smart-image-loader/trunk
- Files:
-
- 4 edited
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
smart_image_loader.js (modified) (1 diff)
-
smart_image_loader.min.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smart-image-loader/trunk/plugin.php
r1012919 r1013263 4 4 Plugin URI: https://wordpress.org/plugins/smart-image-loader 5 5 Description: Load images visible at page load ('above the fold') first for a fast page loading impression. Optional lazy loading for images 'below the fold'. 6 Version: 0.3. 86 Version: 0.3.9 7 7 Text Domain: smart-image-loader 8 8 Author: Bayer und Preuss … … 77 77 $element_empty->setAttribute('data-sil', $class_id); 78 78 79 $element->outertext = $element_empty->outertext . PHP_EOL . '< noscript data-sil="' . $class_id . '" title="' . $element->src . '">' . $element->outertext . '</noscript>' . PHP_EOL;79 $element->outertext = $element_empty->outertext . PHP_EOL . '<span><noscript data-sil="' . $class_id . '" title="' . $element->src . '">' . $element->outertext . '</noscript></span>' . PHP_EOL; 80 80 } 81 81 -
smart-image-loader/trunk/readme.txt
r1012919 r1013263 5 5 Requires at least: 3.8.3 6 6 Tested up to: 4.0 7 Stable tag: 0.3. 87 Stable tag: 0.3.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 35 35 == Changelog == 36 37 = 0.3.9 = 38 * fixed bug where some images would not load on older android versions (2.x) 36 39 37 40 = 0.3.8 = -
smart-image-loader/trunk/smart_image_loader.js
r1002685 r1013263 335 335 if ( sil_options.cleanup ) 336 336 { 337 $noscript. remove();337 $noscript.parent('span').remove(); 338 338 } 339 339 -
smart-image-loader/trunk/smart_image_loader.min.js
r1002685 r1013263 14 14 ae.body.style.webkitTransition="";ae.documentElement.style.backgroundColor="";n=false;},d*2.5);},R=function(ai,w,ak){Z=N(ai);var d=Z.attr("data-sil"),aj=u.filter('[data-sil="'+d+'"]'); 15 15 if(typeof w=="function"){Z.on("load",w);}if(af.fade&&ak){Z.data({opacity:Z.css("opacity")}).css({opacity:"0"});Z.on("load",function(){N(this).fadeTo(500,N(this).data("opacity")); 16 });}Z.attr("src",aj.attr("title"));requestAnimationFrame(function(){e(A,true);});if(af.cleanup){aj. remove();}},O=function(ak,aj){var ai=A.filter(Q),d=ai.length,w=0;16 });}Z.attr("src",aj.attr("title"));requestAnimationFrame(function(){e(A,true);});if(af.cleanup){aj.parent("span").remove();}},O=function(ak,aj){var ai=A.filter(Q),d=ai.length,w=0; 17 17 if(d===0&&typeof ak=="function"){ak();}else{ai.each(function(al,am){R(am,function(an){K(an);w=al+1;if(w==d&&typeof ak=="function"){ak();}},aj);A=A.map(function(){if(this!==am){return this; 18 18 }});});}},v=function(){A.each(function(){var d=this;R(d,K);A=A.map(function(){if(this!==d){return this;}});});},K=function(d){C=A.length>0?false:true;if(C){G.trigger("sil_load");
Note: See TracChangeset
for help on using the changeset viewer.