=========================================================================== Intervening against document.write() =========================================================================== Chorme Issue: The following external script tag will generate a warning: Read documents: (1) https://www.chromestatus.com/feature/5718547946799104 (2) Intervening against document.write() https://developers.google.com/web/updates/2016/08/removing-document-write 以下の文章(request meets criteria 2 to 5)は、「この警告は2G用だが、2Gでなくとも警告は出す」の意味になる -------------------------------- Since Chrome 53, DevTools issues warnings for problematic document.write() statements. Specifically, if a document.write() request meets criteria 2 to 5 (Chrome ignores the connection criteria when sending this warning), the warning will look something like: -------------------------------- (3) Additional rationale for this effort (They think external javascript injected by document.write() is a third-party ad!) https://docs.google.com/document/d/1dMJRQKTw75ZNdknP3pirSBH3koPl_IWHnxlcBuu4t_c/preview --------------------------------------------------------------------------- [Warning Message] A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. --------------------------------------------------------------------------- [Solution1] Use a local php file to read the external jquery --------------------------------------------------------------------------- [Solution2] [local php that read the external jquery] --------------------------------------------------------------------------- [Solution3] add the following line at the top of "_kdk-addon_/index.inc.php" ------------------------------------------ ------------------------------------------ --------------------------------------------------------------------------- [Solution4] (This solution won't hide the warning message!) Enter the following address bar in Chrome ------------------------------------------ chrome://flags/ ------------------------------------------ Enter the following in search input ------------------------------------------ disallow-doc-written-script-loads ------------------------------------------ or you can directly get here using the following url: ------------------------------------------ chrome://flags/#disallow-doc-written-script-loads ------------------------------------------ Set "Default" to "Disabled" and Relaunch Chorme ===========================================================================