Load Google Font Asynchronously - Javascript

Load Google Font Asynchronously - Javascript

code snippet

javascript
<script type="text/javascript" defer async>
  WebFontConfig = {
      google: { families: ['Montserrat:400,700:latin'] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();
</script>

"The best preparation for tomorrow is doing your best today"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.