nature-of-code / Nature-of-Code-Website-Archive

Repo for web files for nature of code
https://noc-processing-archive.netlify.app/
111 stars 21 forks source link

JS sketches draining CPU #23

Closed shiffman closed 1 year ago

shiffman commented 8 years ago

need to think about a better way to lazy load or disable/enable canvas animations for readers who might want them off.

A quick way to remove all the canvases temporarily would be to paste this into the console.

(function() {
  var c = document.getElementsByTagName('canvas');
  for (var i = 0; i < c.length; i++) {
    c[i].remove();
  }
})();
shiffman commented 1 year ago

New website coming soon! https://github.com/nature-of-code/book-website-2nd-edition!