Skip to content

Commit

Permalink
Merge pull request vuestorefront#587 from lukaszjedrasik/add-vue-lazy…
Browse files Browse the repository at this point in the history
…-load-vue-observe-visibility

Added VueLazyload and VueObserveVisibility
  • Loading branch information
Fifciu authored Mar 9, 2021
2 parents 86166de + 9641f00 commit bedc696
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.5] - ???

### Added
- Added `VueObserveVisibility` and `VueLazyload` dependency

## [1.0.4] - 04.01.2020

### Added
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import App from './App';
import routes from './router';
import Vue from 'vue';
import VueProgressBar from 'vue-progressbar';
import VueLazyload from 'vue-lazyload';
import VueObserveVisibility from 'vue-observe-visibility';
import '@vue-storefront/core/lib/passive-listeners';
import { once } from '@vue-storefront/core/helpers';
import { module as cartModule } from './store/cart';
Expand All @@ -17,6 +19,8 @@ import { StorageManager } from '@vue-storefront/core/lib/storage-manager';

once('__VUE_EXTEND_DROPPOINT_VPB__', () => {
Vue.use(VueProgressBar);
Vue.use(VueLazyload, { attempt: 2, preLoad: 1.5 });
Vue.use(VueObserveVisibility);
});

const themeEntry = App;
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"vue-offline": "^1.0.8",
"vue-progressbar": "^0.7.5",
"vuelidate": "0.6.2",
"vuex": "^3.0.1"
"vuex": "^3.0.1",
"vue-lazyload": "^1.3.3",
"vue-observe-visibility": "^0.4.1"
},
"devDependencies": {
"husky": "^3.1.0",
Expand Down

0 comments on commit bedc696

Please sign in to comment.