According to Google Developers article,
you can:Use asynchronous script loading, using
It is better don't use document.write for CDN, here is workaround:
var script = document.createElement('script');
script.src = "....";
document.head.appendChild(script);