Closed joewiz closed 8 years ago
Hi @joewiz! Thanks for bringing this to our attention. We're currently working on a new code version and when we release it, we'll be changing the documentation to suggest adding the async
attribute.
Does this mean we can use it already and the documentation is not up to date or should we wait for the new code version?
Sorry to speak out of turn, but if you are using a tag management system, like GTM, the async attribute is not necessary.
I am under the impression that our current code doesn't yet support async
if using our script
tag directly in html, but I'm double checking now.
@joewiz @line-o confirmed that the current version does not support the async
attribute. But within a few weeks, the v3.0 code should be available, which will load asynchronously the the async
attribute.
@tdlowden OK, thank you very much.
@tdlowden Yes, thank you!
There's an open issue (well, PR) with some discussion of this exact issue: https://github.com/digital-analytics-program/gov-wide-code/pull/28
This option now available in v3.1! Closing... finally.
Great news! We'll put it to use. Thanks for this improvement and for letting us know.
Thanks for bringing it to our attention! Sorry it took so long to get this version out.
DAP's recommended
script
tag lacks anasync
attribute:Is it acceptable to add this attribute? The purpose is to eliminate the hit to page load times on our site due to blocking during DNS load time. DNS lookup times for dap.digitalgov.gov are typically 30ms but we've seen them regularly hit 100ms, even 200ms.