cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inject Adrum.js head

Junaid.Ram
Wanderer

Hi,

I have been going through the posts in the community regarding adrum.js file injection.

I have learnt that there are 2 ways to inject the adrum.js script.

  1. Using document.write method
  2. Or using a plain script tag

I want to ask what are the pros and cons of using each one?

As far I understand document.write is not harmful for performance because there are no DOM nodes created at that point in time, so basically it does not remove/destroy any nodes. But is the script tag better than document.write?

Thanks

0 REPLIES 0