Background calculation using a cross-origin IFrame

This example uses an IFrame that is loaded from a different origin. While the only allowed communication channel is via postMessage, the calculations are single-threaded.

Click on the Calculate button, and you can see the UI is practically frozen until the last calculation is completed.