# How do I make the workspace less laggy in block code

**URL:** https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777
**Category:** Help
**Created:** [March 20, 2026, 5:03pm UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777 "2026-03-20T17:03:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Log](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/log/32/30691_2.png) [@Log](https://forum.makecode.com/u/Log)
#### Post date: [March 20, 2026, 5:03pm UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/1 "2026-03-20T17:03:31Z")

</div>

> Ive been trying to work on my current project but my workspace is so laggy that as I drag my camera around the workspace I can unintentionally delete giant things of code and I have trouble moving to where I’m trying to get to due to the lag. Im moving at around 2-4 fps

---

<div class="post-metadata">

### Author: ![AgentBoom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agentboom/32/16635_2.png) [@AgentBoom](https://forum.makecode.com/u/AgentBoom)
#### Post date: [March 22, 2026, 6:52am UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/2 "2026-03-22T06:52:23Z")

</div>

Try turning off your wi-fi or closing the game window or both

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [March 22, 2026, 6:59am UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/3 "2026-03-22T06:59:16Z")

</div>

Without doing the obvious of using a better computer, here’s some suggestions:  
**- close any other tabs or windows or programs open on your computer**  
**- Right click on the workspace and click “collapse all” to hide most of the code**

- delete any greyed out / unused blocks lying around the workspace
- close the simulator (the pop up showing your game running) when you’re not using it
- Clear up storage space on your computer (if your computer is very close to full, it can cause lag)
- Use a new browser, chrome should be best

Other than that, the only thing left is to optimize the code, meaning you remake it in a way that uses less blocks. But the first two should help a lot— LMK if this works for you! ☺

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [March 22, 2026, 7:13am UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/4 "2026-03-22T07:13:46Z")

</div>

…  
Idk, collapse blocks you aren’t inspecting?  
For non-function block containers, right click it then click “collapse” or something like that  
You can also right click anywhere and click “collapse all” or something like that

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [March 22, 2026, 7:32am UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/5 "2026-03-22T07:32:25Z")

</div>

![Screen recording 2026-03-21 7.31.39 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/e/7ef971939b50e03f94cdb8c73702a37646bbbf3b.gif)

try collapse blocks

---

<div class="post-metadata">

### Author: ![Log](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/log/32/30691_2.png) [@Log](https://forum.makecode.com/u/Log)
#### Post date: [March 24, 2026, 2:45am UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/6 "2026-03-24T02:45:58Z")

</div>

collapsing the blocks really reduced the lag and deleting the greyed out blocks, thank you so much man!!!

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [April 10, 2026, 11:42pm UTC](https://forum.makecode.com/t/how-do-i-make-the-workspace-less-laggy-in-block-code/42777/7 "2026-04-10T23:42:13Z")

</div>

Or use js
