Jump to content

Google Chrome document.write and https


Recommended Posts

Hi

I like to ask about warning messages that appear on google chrome recently.

It never happened before, it just appear recently.

the message is

A Parser-blocking, cross site (i.e. different eTLD+1) script, https://openx.vendercom.com/delivery/fl.js, is invoked via document.write. This 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.

 

A Parser-blocking, cross site (i.e. different eTLD+1) script, https://openx.vendercom.com/delivery/ajs.php?zoneid=121&, is invoked via document.write. This 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.

because of this message, google chrome voids our https cert and flag it as "Not Secure".

do you have solution about this?

it appears that google chrome block/ not recommend using document.write.

Everything is working fine (expect this error message and https cert), which means the ads still showing.

we use :

Revive Adserver 3.2.4

Google chrome Version 57.0.2987.133 (64-bit)

I'm looking forward to hear from you

Thanks

Link to comment
Share on other sites

  • 2 months later...
  • 3 years later...
On 4/6/2017 at 7:04 AM, wishlist said:

A Parser-blocking, cross site (i.e. different eTLD+1) script, https://openx.vendercom.com/delivery/fl.js,

According to Google Developers article, you can:

  • Use asynchronous script loading, using <script src="..." async> or element.appendChild(),

It is better don't use document.write for CDN, here is workaround:

var script = document.createElement('script');  
script.src = "....";  
document.head.appendChild(script);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...