Commit 3bf18a2b93292404b6cecc4564ae3818a8b20fc9

Authored by Administrator
1 parent 6852a4a4

image size

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
frontend/widgets/SliderWidget.php
... ... @@ -71,7 +71,7 @@ class SliderWidget extends Widget
71 71 ', 1);
72 72  
73 73 $this->view->registerCssFile (\Yii::$app->request->BaseUrl . '/js/widget-carousel/'.$slider->title.'/style.css');
74   - $this->view->registerJsFile (\Yii::$app->request->BaseUrl . '/js/widget-carousel/'.$slider->title.'/style.js', ['position' => View::POS_END]);
  74 + $this->view->registerJsFile (\Yii::$app->request->BaseUrl . '/js/widget-carousel/'.$slider->title.'/style.js', ['position' => View::POS_LOAD]);
75 75 }
76 76  
77 77 public function htmlSlider ($slider, $images)
... ...