boot-reload icon indicating copy to clipboard operation
boot-reload copied to clipboard

document.write warnings

Open martinklepsch opened this issue 7 years ago • 1 comments

screen shot 2017-07-17 at 13 01 22

Chrome recently (I think) introduced some warnings about using document.write() for script tags. Not sure if there are alternatives but the warnings are pretty verbose as they are.

martinklepsch avatar Jul 17 '17 11:07 martinklepsch

@martinklepsch document.appendChild() is the preferred method so that the browser doesnt stop executing the current script. Source: https://developers.google.com/web/updates/2016/08/removing-document-write

metacritical avatar May 31 '18 16:05 metacritical