Edit online

Browser Runs Out of Memory when Editing Large Files

Problem

My browser runs out of memory when working with large documents in Oxygen XML Web Author.

Cause

When Oxygen XML Web Author renders documents, it causes the browser to consume more memory than the original document size.

Solution

To work with large documents, you can configure some of the elements to be fold-able. In this case, Oxygen XML Web Author automatically folds the elements in large documents to improve loading times. After the document is loaded, elements are progressively unfolded.

To do this, you need to create a custom CSS file that specifies the folding:
section{
    -oxy-foldable:true;
    -oxy-not-foldable-child: title;
}
Note: The -oxy-foldable property does not work with elements that have: display: inline.
To further improve performance, you can set some elements to be folded by default. This means the elements need to be manually unfolded by the user:
section{
    -oxy-folded: true;
}

To test it, configure a custom framework that associates the CSS file to large XML documents.