Skip to content

Instantly share code, notes, and snippets.

@Tom-Millard
Created February 1, 2018 17:47
Show Gist options
  • Save Tom-Millard/657b44f0d00f948d5656941c8b5b6fa5 to your computer and use it in GitHub Desktop.
Save Tom-Millard/657b44f0d00f948d5656941c8b5b6fa5 to your computer and use it in GitHub Desktop.
Lazy load google fonts
(function(d){
var x = d.createElement("link");
var y = d.getElementsByTagName("script")[0];
x.rel = "stylesheet";
x.href = "https://fonts.googleapis.com/css?family=Raleway:400,900";
y.parentNode.insertBefore(x, y);
})(document);
Copy link

ghost commented Apr 10, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment