-
davisshaver laurenancona this is an async loading tag a common but baffling pattern of they're concerned about capturing interactions....
-
davisshaver laurenancona and it is configured to load async, so moving it up is about literally writing the script tag into the DOM faster
-
davisshaver laurenancona (it loads the script using an async pattern of JS, but also puts the script in a async script tag which is dumb)
-
davisshaver laurenancona if very concerned GTM is missing interactions, you should take the top script&write it as a blocking script tag.
-
davisshaver laurenancona async is a great pattern if you don't care when something loads on a page. If you do... it makes little sense.
-
davisshaver laurenancona flip side: I wrap tags like this in a custom built load manager, it loads async, non blocking and fires onload
-
davisshaver laurenancona and dependent functions (ads and analytics calls) get wrapped in a promise inside an event listener, so...
-
davisshaver laurenancona they fire when event happens & are smart enough to wait for when script they depend on async loads to bubble up.
-
davisshaver laurenancona sorry, lengthy response. I'm obsessing about this lately. Keep getting nonsense loading scripts from 3rd parties
-
davisshaver laurenancona so task like this, priority is on what you have in GTM, how much you care about it & if it is having issues atm?
Chronotope’s Twitter Archive—№ 69,267