CindyJS/website

Performance of examples on website

Closed this issue · 0 comments

I like the new website!

However, on my phone, the bouncing ball example is extremely slow. This can be a bad first impression, especially when one does not even see the other examples yet that are running in the background and causing the bad performance.

I tried the website in Firefox for Android, Chromium for Android and the stock Android browser, all with similarly bad performance. Each example on its own runs smoothly on the device.

As an improvement, I suggest using the visibilitychange event from Page Visibility API to only initialize and run visible examples.

What do you think?