what is the difference between Html5 async attribute vs js async property.
<script src="http://www.google-analytics.com/ga.js" async>
and
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = 'http://www.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
are they interchangeable