When working with marketing pixels, my site performance guy and I use the Load Order for Rules document to make sure we are putting the pixel in the least disruptive location on the page (while still getting the pixel what it needs).
Screen Shot 1 :: 4 Page Load Phases in Launch
Screen Shot 3 :: 4 Options in DTM
SarahEOwen I don't have any problem talking about load order in the meeting but I'll defer to thebenrobb since he's the PM. It sounds like you're interested in some of the deeper details though. I'm happy to dive deeper here so you can have something written that your group can stew on. Some of this is from memory, so if it's inaccurate, I apologize.
A couple notable items:
You can now use document.write within your custom scripts regardless of the events configured for the rule. In DTM, document.write inside custom scripts would only work on page top or page bottom rules.
I hope that helps!
Hi Aaronius9er9er -
Just got out of a meeting with the developers and the site performance guy. We really appreciate your detailed explanation and the link to postscribe on github.
Based on this info, we are going to try moving toward using DOM Ready instead of Page Bottom to take advantage of the postscribe functionality.
At this time, we do not have any follow-up questions.
wow good to know. Thanks for the information.
In Launch, when a rule fires, the "custom action" scripts in the rule are loaded as quickly as possible in parallel, but they are executed in the order you've set within the rule, even if they finish loading out of order. In the case of rules that use the page top or page bottom event, the "custom action" scripts are actually included in the main Launch library instead of being loaded from the server through separate requests. They will always be executed in the order you've indicated in the rule.
Till, we no longer use iframes to load custom code. You can use the custom code action to load css directly into the DOM. It also doesn't matter which event types are used in your rule.
In the 8/22 or 8/29 meeting, can we talk about the difference between DTM Load Order and what Launch is doing?
I want to make sure I convey to my site performance guy what differences he may see - especially with the ubiquitous marketing pixels.
FYI I would also mention Ambria but I don't see/know her @ handle
We used e.g the sequential html to load css directly into the DOM. Non-sequntial always opens an iFrame for this.
How will this be handled in Launch?