Embedding .pde to html does not work/ .pde to p5.js

  • The problem is that browsers block loadings from “file://” scheme.
  • You’re gonna need some local server in order to run “.js” scripts as “http://” scheme instead.
  • Alternatively, you can install Firefox:
  • Once installed, go to its about:config page.
  • Then at the search box there, type in privacy.file_unique_origin, and toggle it to false.
  • Now you can run most sketches from there via the “file://” scheme.
2 Likes