Skip to content

Instantly share code, notes, and snippets.

@jstxx
Created January 20, 2016 20:34
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 jstxx/97cdbbf6293a5d18e138 to your computer and use it in GitHub Desktop.
Save jstxx/97cdbbf6293a5d18e138 to your computer and use it in GitHub Desktop.
(function() {
var _write = document.write;
document.write = function(t) {
t = '<!--##DEFER'+t+'DEFER##-->';
return 'v'=='v' ? _write(t) : _write.call(document, t);
}
})();
function resolve() {
document.body.innerHTML = document.body.innerHTML.replace(/<!--##DEFER(.+)DEFER##-->/g, '$1');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment