Skip to content

Instantly share code, notes, and snippets.

@abhirathore2006
Created November 16, 2019 00:10
Show Gist options
  • Save abhirathore2006/d654163795a6525dd57fe64c72c050b0 to your computer and use it in GitHub Desktop.
Save abhirathore2006/d654163795a6525dd57fe64c72c050b0 to your computer and use it in GitHub Desktop.
<script>
var smscript = document.createElement('script');
smscript.type = 'text/javascript';
smscript.async = true;
smscript.src = 'https://smartasset.com/snippet.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(smscript, s);
</script>
// above script is equivalent to
<script async src="https://smartasset.com/snippet.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment