- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
11-09-2016 08:08 AM
Hi all,
since utag.sync.js is a synchronous javascript, one of our customers asked us a way to better manage it's implementation.
Is there a way to set a timeout to manage the case where the server hosting the utag.sync does not respond? In this way the page load would not be blocked and the page could keep loading normally.
Thanks in advance
Solved! Go to Solution.
11-09-2016 08:20 AM - last edited on 11-09-2016 10:05 AM by kathleen_jo
Hi @luca_pezzoli,
Unfortunately this isn't possible. By their nature, once synchronous scripts have been requested, they cannot be stopped. JavaScript is single-threaded, which means that there is no way to have another process running to "observe" the synchronous request and abort it if it doesn't complete. This is why we recommend using our fully asynchronous approach wherever possible.
Thanks,
Craig.
Copyright All Rights Reserved © 2008-2023