Multiple workspaces...

30 views
Skip to first unread message

Alan Smith

unread,
Jul 23, 2025, 1:02:25 PMJul 23
to blo...@googlegroups.com
For our project, we have multiple "modules" (files) that are in tabs that the user can tab between.   Right now, we have one blockly workspace shared between them and we clear the workspace and load it with the new module whenever the user changes tabs.

This causes a "flicker" as it takes some time to load and render the new workspace.

We could have a different workspace per tab, but I am not sure how much additional memory that would take.

Is it possible to have each workspace as a "headless" workspace and just have it render when the tab is changed?

Or is there an even better option that I haven't considered?

Thanks,

Alan

Maribeth Moffatt

unread,
Jul 24, 2025, 2:14:06 PMJul 24
to Blockly
It's not possible to convert a headless workspace directly to a rendered workspace (go from Workspace to WorkspaceSvg). If it were I'm not sure how different in practice that would be than what you have today, since you'd still need to do the work of rendering the workspace once the user switches tabs.

I would recommend trying the approach of having multiple workspaces and see if that has better performance. But ultimately if you have very large workspaces that take a long time to render I'm afraid I don't have many suggestions there. I know other projects take this tabbed approach so maybe someone else can chime in with what worked for them.

Best,
Maribeth

Reply all
Reply to author
Forward
0 new messages