Friday, 15 June 2012

javascript - Separate event-loop for same-origin CPU intensive iframe -



javascript - Separate event-loop for same-origin CPU intensive iframe -

let's have cpu intensive iframe. it's on same domain parent page, cross-origin not apply, shares parent's event-loop.

is possible have separate js context (including separate event-loop) iframe, such doesn't block parent's ui?

setting sandbox attribute iframe tag doesn't solve this, although docs state iframe considered 'unique origin'.

this question hypothetical/conceptual. don't have real use-case this. curious. wandering how sites jsfiddle run users' code, , apparantly runs iframe different domain (jshell.net in jsfiddle's case).

javascript iframe sandbox same-origin-policy

No comments:

Post a Comment