browserify / browserify/vm-browserify

Not necessary to create a new iframe for each call.

Open
#19 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
205
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I have a project that makes many calls (some cases 100's) to `vm.runInNewContext`.

Each call to `vm.runInNewContext` incurs the creation and [insertion of a new `iframe`](https://github.com/browserify/vm-browserify/blob/master/index.js#L60).

This is not necessary, a single `iframe` can be cached, cleaned up after use and then re-used for subsequent calls to `vm.runInNewContext`.

I have a pr on the way.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.