Just an observation, i'd be interested to hear if anyone else has thoughts on this.
I've created 2 identical dashboards
1. A Story using optimized mode
2. A classic Analytic Application
Same canvas settings, same widgets , same scripting -- all identical
Script performance in the optimized story is terrible, yet the classic analytic app runs scripts very quickly.
Things like showing hiding panels, running for/if loops etc , rendering.