add visual indication on document loading
This should implement #265.