When can a (WebGL) context be lost

You can read about “context lost” in this book WebGL Programming Guide

This is an example from the book: ch10/RotatingTriangle_contextLost: ch10/RotatingTriangle_contextLost - JSFiddle - Code Playground

All examples from the book here: Examples from "WebGL Programming Guide" on JSFiddle