Open in canvas is awfully slow

I asked chatgpt-4o to “show a C++ example for MinHash”. It showed an example in canvas. The problem is that it took many seconds for the UI to transition to canvas after I clicked “Open in canvas”. After the UI transitioned to canvas, I clicked “Close” to close the canvas, and it took similar time to close the canvas and went back to the original UI.

I tried the same scenario in both Microsoft Edge and Chrome on Windows 11, same large latency for UI transition.