feat: Adds async and defer attributes to chatwoot script tag (#2890)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
This commit is contained in:
Fayaz Ahmed
2021-08-26 19:51:10 +05:30
committed by GitHub
parent 5853531d9a
commit 0a08e1ffc0
4 changed files with 7 additions and 0 deletions

View File

@@ -66,6 +66,8 @@
var BASE_URL="";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g,s);
s.async=!0;
g.onload=function(){