Fix up canvas redrawing and only load html5 animations when they are visible
Fix up canvas redrawing and only load html5 animations when they are visible