Commit 001da090ad6ab81ce4fd6db4ce6b688e1864cb09

Authored by Yarik
1 parent a6322189

Lazyload

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
components/artboximage/ArtboxImageHelper.php
@@ -68,7 +68,8 @@ @@ -68,7 +68,8 @@
68 } else { 68 } else {
69 $imgOptions['class'] = 'artbox-lazy'; 69 $imgOptions['class'] = 'artbox-lazy';
70 } 70 }
71 - return Html::img(''); 71 + $imgOptions['data-original'] = $src;
  72 + return Html::img('', $imgOptions);
72 } else { 73 } else {
73 return Html::img($src, $imgOptions); 74 return Html::img($src, $imgOptions);
74 } 75 }