Hello Wix team
I was very enthusiastic about the new prefetchPageResources API .
Unfortunately, it does not have an impact on the loading time of my lightBox. See this website for instance. On mobile scroll to the map, click on a location on the map. Lightbox takes more than 2 seconds to open and nothing changed with prefetch.
How are we supposed to use that method? within page code, within site code?
Can it work on the landing page?
Does it work on mobile?
What should be the expected effect (in time decrease) of using prefetch?
What are the drawbacks of using prefetch ? I mean, why not prefetch all the pages and all the lightboxes ?
thx for your answers @yisrael-wix
I also tried prefetch for Lightbox and there really wasn’t a noticeable difference at all.
Yup …me too. I recorded a video to check site difference before and after code … no clue if it even worked (because there was visible difference and) because the console log message didnt even work …so …
Yes. I couldn’t feel a significant change either.
but the console.log worked for me (after I moved the prefetch to inside an $w.onReady() function, which as I said was missing from the documentation).
Lightboxes by default should load instantly. I don’t understand what is going on here, many people have been airing these concerns since lightboxes were released. Would love some comments from Wix about this
Could we have some kind of answer from Wix team ?
Let’s ask @oferr , He wrote about this feature in the other forum.
We are working on making lightboxes load faster, but it’s not an easy task, that’s why we released the first optimisation (prefetchPageResources API), and will continue until lightboxes are fast enough.
And if there is no link to the lightbox on the page, e.g. when you use lightboxes from code to display success or error messages? Can they be prefetched too?
Prefetch them before the visitor is starting the flow that ends with that success message, and preferably after you know they are going to start that flow
@oferr Great, i only say this because we have literally been saying this since Lightboxes were released. That’s all.
@oferr is it possible to prefetch dynamic pages?
@Ofer is there any development with this? It seems that it has no impact on anyones sites?
Unfortunately, after extensive testing and giving it time to settle as a new feature, I don’t see any impact at all with this optimisation technique for both Pages and Lightboxes.
I have added it and tested it in a number of sites - which i have now removed it form. Makes no difference.
Hi @Stephen, @Robert,
The impact is mostly on slow networks, so I would suggest checking it on 3G.
4G visitors won’t feel much difference, but for the 3G visitors it can save a few seconds when loading the page.
Now you should decide:
On one hand, I guess importing wixSite from the wix-site module takes some milliseconds and on the other hand pre-fetching saves some milliseconds and both are unnoticeable in most cases. What would you do? Save a few ms of the 1st page loading time by not importing wixSite or save the a few ms of the 2nd page by pre-fetching.
I We are not talking about milliseconds … we talking about 1 / 2 seconds. From click to appearance on a fast wifi network. I don’t see any difference between with to without prefetch.
Has anything come of improving the UX for lightboxes. A lightbox is a great solution for many kinds of menuing, popouts or custom input but they appear to be dead slow? Is there a cure?