Chronotope’s avatarChronotope’s Twitter Archive—№ 69,274

                  1. …in reply to @davisshaver
                    davisshaver laurenancona this is an async loading tag a common but baffling pattern of they're concerned about capturing interactions....
                1. …in reply to @Chronotope
                  davisshaver laurenancona and it is configured to load async, so moving it up is about literally writing the script tag into the DOM faster
              1. …in reply to @Chronotope
                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)
            1. …in reply to @Chronotope
              davisshaver laurenancona if very concerned GTM is missing interactions, you should take the top script&write it as a blocking script tag.
          1. …in reply to @Chronotope
            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.
        1. …in reply to @Chronotope
          davisshaver laurenancona flip side: I wrap tags like this in a custom built load manager, it loads async, non blocking and fires onload
      1. …in reply to @Chronotope
        davisshaver laurenancona and dependent functions (ads and analytics calls) get wrapped in a promise inside an event listener, so...
    1. …in reply to @Chronotope
      davisshaver laurenancona they fire when event happens & are smart enough to wait for when script they depend on async loads to bubble up.
  1. …in reply to @Chronotope
    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?


Search tweets' text