Blame view

assets/LazyAsset.php 341 Bytes
a6322189   Yarik   Lazyload
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?php
  
  namespace artweb\artbox\assets;
  
  use yii\web\AssetBundle;
  
  /**
   * Main frontend application asset bundle.
   */
  class LazyAsset extends AssetBundle
  {
      public $sourcePath = '@artweb/artbox/resources';
      public $js = [
          'artbox-lazy.js',
      ];
  
      public $depends = [
          'artweb\artbox\assets\LazyLoadAsset',
      ];
  
  }