I've deployed my app to Vercel using Edge Functions but on the first load without any cache, the service worker doesn't seem to be loading up any additional JS that I think it should be loading. Because when I click on a top level link to go to another page, it takes a little while to download all the required JS for that next page. I'm under the impression that QwikCity should take care of this and prefetch a lot of the JS. When I refresh the page, the JS is pulled from the Service Worker at that point, though. Do I need to turn on an option? Or add some kind of option to get this to work?
#App is not prefetching JS
9 messages · Page 1 of 1 (latest)
Bumping this up again. It's either I'm doing something wrong, something I don't understand, or there is a bug. Because this type of issue is the reason why people are hesitant to use Qwik, I think it's important to figure this out for other people.
Can you share the URL? And did you read https://qwik.builder.io/docs/advanced/prefetching/ ?
No, I can't, it's a private app. And yes, I did. It's very hard to grok that page because it talks about how and why, but not how you configure it. It's just like, "Drop your config here, good luck!"
Is it related to the <Link/> component? If so this is a known issue.
Hard to help without having a URL. can you share it privatly?
@thin obsidian, I will send you a link with a username/password.
Had a chat with Miško and there is a bug with the <Link /> component at the moment that is causing this issue. He provided me with some ideas on how to possibly get around it for now. Thanks, all!
@sage vector thanks for the feedback. Could you share the workaround ?