Using ES6 in the KA webpage environment is obviously desirable. And unlike the Processing.JS environment, it’s quite feasible.
For detail on how and why KA parses your HTML, see this post, which seeks to answer how to disable Slowparse for large swaths of HTML.
Unfortunately, because KA doesn’t completely clear the window before re-running code, you can’t use
This technique also has the benefit/risk of bypassing KA’s infinite loop protection.
Slowparse tries to follow the HTML spec as closely as possible, so it ignores
script blocks that don’t have a
script type set to
script that is any of the valid MIME types (or unset, or an empty string).