Fixes a bug where a new render loop is created every time the page is
resized (oops). This would cause performance problems if the
page is resized a lot.
Fixes the background not filling the screen on mobile Firefox when
zoomed out or scrolling into overflow.
- Don't animate if WebGL fails on failIfMajorPerformanceCaveat (if
browser is using a software renderer)
- Remove array access
- Reduce texture lookups from 16 to 8