Skip to content

Instantly share code, notes, and snippets.

@dfkaye
Created October 17, 2019 00:45
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 dfkaye/7213f7e6e5a6ed532930bf66964a1ccd to your computer and use it in GitHub Desktop.
Save dfkaye/7213f7e6e5a6ed532930bf66964a1ccd to your computer and use it in GitHub Desktop.
"Unloading a website" - fragment by @etoxin
// 16 October 2019
// modified version from tweet by @etoxin
// https://twitter.com/etoxin/status/1179644600522162176
// "I like to call this unloading a website."
// https://twitter.com/etoxin/status/1179646206529564672
Array.from(document.querySelectorAll('*'))
.reverse()
.forEach(async function (n, t) {
await setTimeout(function () {
n.remove();
}, t * 10);
});
// 👍 👍
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment