Parser-blocking, cross-origin script Error Repetation on this theme

Recently after the web browsers update in Chrome and Firefox, I have been continuously getting these errors mentioned below with many kinds of scripts and functions. Tested those scripts with other theme and they seemed to work then.

Failed to execute ‘write’ on ‘Document’: It isn’t possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

A Parser-blocking, cross-origin script is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.