-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download chunk in background #254
Comments
You can try to play with When applying some custom logic to handle loading script next time user opens the app after prefetching it in the background previously, you can achieve described behaviour. |
@ashutoshd11 Any luck with what was suggested in the comment above? |
This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days. |
This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context. |
@jbroma sorry to tag you like this on an old issue. but i am trying to achieve same functionality mentioned in this ticket. we have remote that will be served from cdn. on initial load we are already using local chunk to show the content to avoid waiting on remote download. while we show local chunk we also do prefetch of the remote chunk in background. i was expecting next restart of the app, native script manager will be able to pull remote chunk from prefetched local file system path. but looks like this support is not built-in (i could not figure this is supported from native source-code for re.pack...) or may be iam missing something. can you please confirm is this support built0in at native script manager level or this needs to be something we have to custom build on our side... |
nevermind found the docs related to how to setStorage for ScriptManager |
Ask your Question
Is there a config by which we can serve the local chunk first and then check the new version of chunks and download it in the background and serve the new chunk in the next app launch
The text was updated successfully, but these errors were encountered: