Skip to content
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

Arg: "--disable-update-check" results in Slower Load time of Code Server #6999

Open
2 tasks done
kunal-testlify opened this issue Sep 13, 2024 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@kunal-testlify
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: macOS
  • Remote OS: Debian
  • Remote Architecture: Docker Image
  • code-server --version: 4.92.2

Steps to Reproduce

  1. Launch instances of Code-server with --disbale-update-check and one without it
  2. Compare total time to load

Expected

Passing the arg shouldn't be adding any delay to loading of VSCode.

Actual

From my observation the culprit could be loading of index.html & fake.html file being fetched which adds upwards of 2s+ delay

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

This cannot be tested in native VS Code

Does this bug reproduce in GitHub Codespaces?

This cannot be tested in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@kunal-testlify kunal-testlify added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Sep 13, 2024
@code-asher
Copy link
Member

When you say time to load, you mean the browser right? The only thing that flag does is disable an update check, and the update check runs asynchronously.

index.html and fake.html are used in web views (for example when viewing extension details), but they have nothing to do with the update check. If you are seeing those load then maybe in one test a web view was displayed but not in another? Or the time difference could maybe be explained by caching.

@code-asher code-asher removed the triage This issue needs to be triaged by a maintainer label Sep 13, 2024
@kunal-testlify
Copy link
Author

Hey @code-asher you replicate the issue locally using the docker images. Run one container with the flag to disable update check and one without it.
The container with the flag fetches index.html and fake.html on page load whereas the other doesnt. (Verified in Network tab of the browser). When deployed on platform like GCP/etc, the inital delay to show the VSCode editor can increase upto 2s.

@code-asher
Copy link
Member

I am not sure why it would be different in an image but I tried it (docker run --rm -p 8080:8080 codercom/code-server --disable-update-check --auth none) and I see those files loading both with and without the flag (because of the welcome page, which is using a web view).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants