vm-browserify icon indicating copy to clipboard operation
vm-browserify copied to clipboard

Not necessary to create a new iframe for each call.

Open brucejo75 opened this issue 8 years ago • 0 comments

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.

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.

brucejo75 avatar Aug 31 '17 03:08 brucejo75