mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
lazy load favicons
This commit is contained in:
@@ -43,6 +43,8 @@ var sanitize = function(content, base) {
|
||||
return sanitizer.sanitize(content, {FORBID_TAGS: ['style'], FORBID_ATTR: ['style', 'class']})
|
||||
}
|
||||
|
||||
Vue.use(VueLazyload)
|
||||
|
||||
Vue.directive('scroll', {
|
||||
inserted: function(el, binding) {
|
||||
el.addEventListener('scroll', debounce(function(event) {
|
||||
|
6
assets/javascripts/vue-lazyload.js
Normal file
6
assets/javascripts/vue-lazyload.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user