Deploying Launch async - alternative tag syntax | Community
Skip to main content
Level 8
January 17, 2018
Solved

Deploying Launch async - alternative tag syntax

  • January 17, 2018
  • 1 reply
  • 2920 views

So this new feature to deploy Launch async.

I see that it gives you a tag like this:

<script src="//assets.adobedtm.com/launch-12345-development.min.js" async></script>

From my perspective, I should be able to instead do something like this:

(function() {

  var s = document.createElement('script');

  s.src = "//assets.adobedtm.com/launch-12345-development.min.js";

  s.async=true;

  var t = document.getElementsByTagName('script')[0];

  t.parentNode.insertBefore(s, t);

})();

I want to be able to do this because it would allow me to dynamically output "12345" and/or "development" parts of the script URL - something that has been a sore spot with DTM for a lot of people.

Will Adobe support async deployment of the Launch script like this?

.josh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aahardy

Yes. You can start using it that way right now if you choose.

1 reply

aahardyAdobe EmployeeAccepted solution
Adobe Employee
March 14, 2018

Yes. You can start using it that way right now if you choose.