visibility of the grid is only shown when the document has fully loaded.