#anyway to remove these network calls?

22 messages · Page 1 of 1 (latest)

proper tree
#

when I run yarn dev I could see those attached 4 network calls. But in the Qwik demos from youtube, I couldn't see any. Where I went wrong?

hybrid anvil
#

You are in development mode

#

The console will tell u when you are in development

proper tree
#

So what command should I run to hide those network calls in the development mode using yarn?

hybrid anvil
#

Those are JavaScript needed in development, they need to happen

#

You can run your app in preview mode, which is very similar to production but locally

#

Yarn preview

proper tree
#

then also I could see above network calls

#

In the demos I could see no network calls at the initial load in dev mode

hybrid anvil
#

Which app is this? It’s likely some event you have in the app, is it using a Link?

#

The link component will prefetch some js, so by the time of clicking it will be already downloaded

#

Does not mean that Qwik is running it

#

Think a lot of@it like streaming of video

#

Qwik is downloading paths of interaction before you click it, but not executing until it actually happens

#

Also! Id you see the data is being already cached by the built in service worker

#

So it’s already not being a network request

#

It all happen offline

proper tree
#

Thanks got it. had to remove unwanted code at the first place

hybrid anvil
#

it was likely Link trying to prefetch the next page

#

so UX is great and not affected by latency

#

you can use <a>