This is the same problem you encountered when using JavaScript (e.g. from script in <head>) to change the DOM of the current document before loading the DOM: you are trying to access elements that do not currently exist in memory.
DOMContentLoaded, , DOM .
, DOM , , , .
obs.observe load:
newWin.addEventListener('load', function() {
obs.observe(newWin.document.body, observerConfig);
}, true);
, , , !