-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webworker in iframe #819
Webworker in iframe #819
Conversation
Looking good! We should also provide a way to clean the things created by this class (event listener and injected element). Did you notice any change in terms of performances? |
0ae8b16
to
8644019
Compare
Done. 😄
Did not do any benchmark nor profiling, locally feels the same, did load |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I tested and there were no noticeable performance regressions.
@AquiGorka One last question, who calls |
@2color : Update, this is the correct one: https://github.com/aragon/aragon/blob/ee6853f3c159d40e51611830454586663fd080ae/src/worker-utils.js#L61 |
We should call it from here: https://github.com/aragon/aragon/blob/feature/webworker-in-iframe/src/aragonjs-wrapper.js#L405 So that it gets cleaned when needed: https://github.com/aragon/aragon/blob/feature/webworker-in-iframe/src/App.js#L199 Loading another DAO probably doesn’t work in the current state? Edit: oh right, I missed that @AquiGorka |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Adds extra sandboxing to webworkers by executing them in iframe.