Skip to content

Instantly share code, notes, and snippets.

@korczis
Created November 1, 2015 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korczis/a4a6328be3f9ab2a7dde to your computer and use it in GitHub Desktop.
Save korczis/a4a6328be3f9ab2a7dde to your computer and use it in GitHub Desktop.
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