1
0
Fork 0

Force lazyloading image revalidation

This commit is contained in:
An Phan 2016-06-24 14:06:01 +08:00
parent f5c0ad3824
commit 071f4a5c9a
1 changed files with 8 additions and 1 deletions

View File

@ -42,6 +42,8 @@ import explore from './components/Explore.vue'
import mainHeader from './components/Header.vue'
import mainFooter from './components/Footer.vue'
let blazy = null
export default {
components: { group, explore, mainHeader, mainFooter },
@ -68,7 +70,7 @@ export default {
mounted() {
// Register lazyloading for the GitHub badges
const blazy = new Blazy({
blazy = new Blazy({
container: '.right'
})
@ -100,6 +102,11 @@ export default {
}
this.groups = this.filter(_.cloneDeep(window.data), q)
// Force Blazy to revalidate the images for lazy loading
this.$nextTick(() => {
blazy.revalidate()
})
}, 100),
/**