I’ve noticed a random JavaScript function at the end of the source code of my WordPress website.
<script type="text/javascript">
(function() {
var request, b = document.body, c="className", cs="customize-support", rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)');
request = true;
b = b.replace( rcs, ' ' );
// The customizer requires postMessage and CORS (if the site is cross domain)
b += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
}());
</script>
A quick google search lead me to the article below, but I didn’t find it very informative.
Does anyone know what exactly this script does, and if it is required?