Threading for iframes in IE
Of the following, which don't run on the same thread as the current page in IE8 ?
- iframe with the same domain as the current page.
- iframe with a subdomain of the current page domain.
- iframe with the superdomain of the current page domain.
- an iframe with a completely different domain from the current page.
I want to know this for implementing Web Workers in IE that are in separate threads.
Edit : is there a way to have window
in another thread in IE before postMessage
before?
+2
source to share
2 answers
As Franzi mentioned, using an iframe will not give you a new theme. However, you can "simulate" multithreading with setTimeout and callbacks:
- "Multithreading in JavaScript": http://articles.sitepoint.com/article/multi-threading-javascript
- Fakeworker.js (Web workers implementation using this setTimeout trick): http://code.google.com/p/fakeworker-js/
+2
source to share