Created
November 1, 2015 03:16
-
-
Save korczis/a4a6328be3f9ab2a7dde to your computer and use it in GitHub Desktop.
Short snippet for injecting immutable.js from CDN to page
This file contains 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
var s = document.createElement('script'); | |
s.src = 'https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.5/immutable.js' | |
s.onload = function() { | |
this.parentNode.removeChild(this); | |
}; | |
(document.head || document.documentElement).appendChild(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment