I came across this third-party analysis code known as VWO
, the embedded script is interesting, and the official documentation is available here: https://help.vwo.com/hc/en-us/articles/360021306233-Volusion
Thus the interesting code in their documentation is as follows:
load: function(a) {
var b = d.createElement('script');
b.src = a;
b.type = 'text/javascript';
b.innerText;
b.onerror = function() {
_vwo_code.finish();
};
d.getElementsByTagName('head')[0].appendChild(b);
},
Here is a section of their embedded code; I saw that b.innerText
accomplished nothing, and I was curious what occurred exactly there. Is this a browser engineering level trick?
I'm aware that some kind of code will cause the browser to force paint, but this doesn't appear to be the case.
Anybody have any ideas?