Embedding a Processing.js sketch in a WordPress pageImage Processing
Processing.js is very handy, and it is very cool to run your sketches in your browser. I was looking around for one easy way to embed a sketch into a WordPress page or post, and found a good option.
I used the Processing JS plugin, written by Keyvan Minoukadeh. You can get it from this location : http://www.keyvan.net/code/processing-js/
I just faced a small issue while trying to use this plugin and the preview mode in WordPress. Sketch was not running, but reloading the page is solving the issue. And there is no problem if the post is really published, only issue is in preview mode. I am using Chrome on MacOS.
Below one example I made in few code lines :
I’ll have to see what I can do to prevent this. As you say, reloading the page after hitting preview should work.