A Verified Legend
- Local time
- Oct 13, 2019
We're trying to output a script, it's below:
An engineer has told us, this script won't work because, he said:
Apologies for the delay here. We had a couple of all-hands-on-deck situations yesterday and I didn't get a chance to look at this by EOD. I did however check out both of the links just now and the issue is related to the script itself. In both instances the noad event is working as intended and dropping your code on the page. The reason the first instance works is you're actively modifying the DOM via the ".html()" method. In the second, you're using document.write(). The latter does not work because you're not able to use document.write() from async scripts after the page has already loaded. You can note this yourself by checking out the console errors. You should see one in yellow referencing the event.
Any idea of how we can implement the suggestion?