A canvas keeps moving while the main thread is blocked
Press the button. The page clock is ordinary page text, so it stops for 5 seconds. The app runs in a worker and sends the same time to the canvas, where it runs on. Try the theme button meanwhile: the page answers only when the 5 seconds are over.