Balancing site performance and business requirements are synonymous with a customer-centric strategy. In 2011 in an effort to improve site reliability, usability and speed, Tealium started offering asynchronous tagging. Those able to utilize the Tealium Asynchronous Library during implementation, realized the most value.
As Crockford states, “document.write encourages bad structure, in which script and markup are intermingled. A cleaner structure has minimal interaction between markup and script.”
If you want to see an example of an alternative asynchronous solution, check out Tealium’s integration with Optimizely.
Web browser engineers have tolerated the use of document.write for many years, however this is coming to an end. Google has even announced Chrome will start blocking document.write for 2G users.
We encourage our clients, vendors and partners to join the effort and remove this code from all implementations. As we attempt to integrate seamlessly with third parties, composability implies a shared responsibility for all. The user experience is shaped at every point of the funnel, and for customer-centric digital marketers, there is no other substitution when it comes to managing and creating great experiences that have the power to shape the perception of a brand.