Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Short snippet for injecting immutable.js from CDN to page
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