Created
February 1, 2018 05:17
-
-
Save edwinwebb/eb91d597e43d9f31f91a19357fef3148 to your computer and use it in GitHub Desktop.
load css from cdn with javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CSSURL = '//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css' | |
const style = document.createElement('link'); | |
style.setAttribute('href', CSSURL); | |
style.setAttribute('rel', 'stylesheet'); | |
document.body.appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment