Closed chriscdn closed 5 years ago
There is performance problem when registering the mixin as a global. The mounted() hook gets called on each component, which means potentially 100s of calls to window.addEventListener.
mounted()
window.addEventListener
window.addEventListener('online', onlineHandler) window.addEventListener('offline', offlineHandler)
Chrome seems to handle this fine. IE, not so well.
@chriscdn this is why you have VueOfflineMixin which you can inject instead of plugin
VueOfflineMixin
There will be an huge update next week tho which should eliminate this problem
There is performance problem when registering the mixin as a global. The
mounted()
hook gets called on each component, which means potentially 100s of calls towindow.addEventListener
.Chrome seems to handle this fine. IE, not so well.