Bartosz Podlewski
Bartosz Podlewski
``` const observer = lozad(this.$el.querySelector('picture.lozad'), { rootMargin: '50px 0px', threshold: 0.1, load(el) { const sources = el.querySelectorAll('source') sources.forEach((source) => { source.setAttribute('srcset', source.getAttribute('data-srcset')) }) } }) observer.observe() ``` something like this...
layouts/default.vue ``` const workbox = await window.$workbox; if (workbox) { workbox.addEventListener('beforeinstallprompt', (event) => { // your stuff here }); } ``` maybe?
this works too: https://gist.github.com/podlebar/340c9e7731b319d838eba083bb91a8ba mix of dynamic import and mounted hook...
@Baroshem I can confirm this bug.. the solution is to move the algolia config to `runtimeConfig.public`. If you don't have any public runtimeConfig it works fine as described in the...
i understand.. but than i ask myself why https://github.com/nuxt-community/algolia-module/issues/83 should be in this module as it's also possible to implement without this module :) is there a rule of thumb...
@mornir have you tried to lzyload markers and types? i'm trying to get this working
@mornir no but image slider, videoplayer or audioplayer.. they are only used in 1% of the articles i have.. idea was to shrink the initial bundlesize
@Stf-F did u find a solution?
@Haroenv this solution lead to a infinit route change on my project.. so every 400ms i see the url without any params that it shows them and removes them again.....
just found a small bug.. read() { return vueRouter.currentRoute.query }, is not eqal: read() { return qs.parse(vueRouter.currentRoute.query) }, so if i use qs.parse in read() it also works on client...