Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Is it possible to separate client-side and server-side Theia IDE load? #1060

Closed
amisevsk opened this issue Nov 13, 2018 · 4 comments
Closed

Comments

@amisevsk
Copy link
Collaborator

The Theia IDE continues to work even if the workspace pod is deleted -- you can scale the deployment to zero and back to one without breaking Theia (it just shows a yellow "disconnected" bar across the bottom
screenshot from 2018-11-13 09-51-34

However it seems that loading the client-side js does not occur until the workspace is fully started. Is it possible to do the client-side loading while the openshift resources are being created to save some time in startup?

@garagatyi
Copy link

@amisevsk I think it is exactly what @davidfestal was working on and was describing on our standups. Maybe it wasn't that obvious or maybe I misunderstood David.
@davidfestal could you comment on that?

@davidfestal
Copy link
Collaborator

davidfestal commented Nov 14, 2018

@garagatyi I'm not sure that's exactly the same thing as what I'm working on if I understood correctly.

My work mainly consists in allowing the Theia Javascript bundle files (big JS files) to be:

  • cached correctly (which implies having them available from a fixed URL instead of the always-changing workspace route URL)
  • retrieved from a configured CDN when available from there, with a fallback to local versions (which implies changing the HTML page accordingly)
  • pre-loaded into the browser cache from the HTML page of the workspace loader (= previous step), so that the first client-side loading and caching of these big JS files would occur while the Theia container is still starting on the server-side.

However, the idea of displaying the whole Theia application (with the HTML itself) in the browser before the server-side container initialization is finished was not really part of the work I'm currently doing even though it might be a continuation of it.

@amisevsk do you confirm ?

@garagatyi
Copy link

I'm not sure we can load client-side without having a server-side running. But, in any case, I thought that Angel was describing only caching of JS from ws loader or UD, not showing whole client side

@ibuziuk
Copy link
Member

ibuziuk commented Nov 12, 2019

Closing in favour of eclipse-che/che#14879 which should list all the optimizations related to workspace startup timing (N.B. on hosted che the startup is ~35 s atm)

@ibuziuk ibuziuk closed this as completed Nov 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants