17. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor cause the processor to perform operations comprising: receiving a request to display a portion of a document that defines a plurality of rows of content and that is represented by a document model, wherein the document comprises a spreadsheet made up of cells; determining heights of the plurality of rows and saving information about the heights in a cache that correlates rows to the height information, wherein determining the heights of the plurality of rows comprises rendering content of selected cells in a hidden frame element and determining offset heights of the content of selected cells; and using the document model and the cache to generate a view of the document model having the determined row heights, wherein the generated view of the document model comprises spreadsheet cells with content and is separate from the hidden frame element comprising content.
17. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor cause the processor to perform operations comprising: receiving a request to display a portion of a document that defines a plurality of rows of content and that is represented by a document model, wherein the document comprises a spreadsheet made up of cells; determining heights of the plurality of rows and saving information about the heights in a cache that correlates rows to the height information, wherein determining the heights of the plurality of rows comprises rendering content of selected cells in a hidden frame element and determining offset heights of the content of selected cells; and using the document model and the cache to generate a view of the document model having the determined row heights, wherein the generated view of the document model comprises spreadsheet cells with content and is separate from the hidden frame element comprising content. 20. The non-transitory computer-readable storage medium of claim 17 , the operations further comprising: saving information from the cache in a local storage that persists across sessions in a web-based application for interacting with the document.