Plugin Directory

Changeset 1013263


Ignore:
Timestamp:
10/24/2014 08:45:38 AM (11 years ago)
Author:
bypr.nils
Message:

fixed bug where some images would not load on older android versions (2.x)

Location:
smart-image-loader/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • smart-image-loader/trunk/plugin.php

    r1012919 r1013263  
    44Plugin URI: https://wordpress.org/plugins/smart-image-loader
    55Description: 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.8
     6Version: 0.3.9
    77Text Domain: smart-image-loader
    88Author: Bayer und Preuss
     
    7777        $element_empty->setAttribute('data-sil', $class_id);
    7878
    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;
    8080    }
    8181
  • smart-image-loader/trunk/readme.txt

    r1012919 r1013263  
    55Requires at least: 3.8.3
    66Tested up to: 4.0
    7 Stable tag: 0.3.8
     7Stable tag: 0.3.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434
    3535== Changelog ==
     36
     37= 0.3.9 =
     38* fixed bug where some images would not load on older android versions (2.x)
    3639
    3740= 0.3.8 =
  • smart-image-loader/trunk/smart_image_loader.js

    r1002685 r1013263  
    335335        if ( sil_options.cleanup )
    336336        {
    337             $noscript.remove();
     337            $noscript.parent('span').remove();
    338338        }
    339339
  • smart-image-loader/trunk/smart_image_loader.min.js

    r1002685 r1013263  
    1414ae.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+'"]');
    1515if(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;
    1717if(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;
    1818}});});}},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.