mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 02:24:08 +02:00
toImage() Added support for native image lazy-loading. See https://addyosmani.com/blog/lazy-loading/ for more info.
This commit is contained in:
@@ -822,6 +822,10 @@ TMP;
|
||||
$override = array('w'=>0, 'h'=>0); // display image without resizing
|
||||
$result3 = $this->tp->toImage($src, $override);
|
||||
$this->assertStringContainsString('Fbutterfly.jpg&w=0&h=0', $result3); // src
|
||||
|
||||
$result4 = $this->tp->toImage($src, ['loading'=>'lazy']);
|
||||
$this->assertStringContainsString('loading="lazy"', $result4); // src
|
||||
|
||||
}
|
||||
|
||||
public function testThumbSrcSet()
|
||||
|
Reference in New Issue
Block a user