You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process of compressing all files into a string (handled by lz-string) might be very expensive to the main thread, blocking the UI and degrading the experience.
What is this feature?
Instead of performing the compressing process inside the Sandpack component, we could move this logic to a webwoker and optimize the heaviest part of this process.
How would your idea work?
Create a webworker;
Reuse this webworker for all sandpacks on the page, I don't think we need a specific webworker for each sandpack;
Set a loading state in the "Open in CodeSandbox" button, as this will run async;
Tell us how you think we can improve Sandpack
The process of compressing all files into a string (handled by
lz-string
) might be very expensive to the main thread, blocking the UI and degrading the experience.What is this feature?
Instead of performing the compressing process inside the Sandpack component, we could move this logic to a webwoker and optimize the heaviest part of this process.
How would your idea work?
#442
The text was updated successfully, but these errors were encountered: