As a new iframe already has a head and a body element, I think it is not necessary to rewrite all with document.open, document.write and document.close. This PR removes them and improves the performance a little bit (I think).
As the side effect, DOMContentLoaded event is no longer fired.
As a new iframe already has a head and a body element, I think it is not necessary to rewrite all with
document.open
,document.write
anddocument.close
. This PR removes them and improves the performance a little bit (I think).As the side effect,
DOMContentLoaded
event is no longer fired.