Severe performance issues in Author mode when using CSS

Having trouble installing Oxygen? Got a bug to report? Post it all here.
steinerc
Posts: 2
Joined: Fri Oct 19, 2018 12:41 pm

Severe performance issues in Author mode when using CSS

Post by steinerc »

I am experiencing severe performance issues when I assign a CSS to an XML/TEI file (800kb -- so not extremely big). However, if I change the settings in the "TEI framework --> Author" to include the CSS from the framework (so actually now 3 CSS files with a lot of different rules instead of my one test CSS with only one rule) it works perfectly.
Is that a bug or am I doing something wrong? Thanks a lot for any advice!
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: Severe performance issues in Author mode when using CSS

Post by Radu »

Hi,

In the Oxygen Preferences->Document Type Association page if you edit the "TEI P5" framework configuration, in the "Author" tab, go to the "CSS" tab and at the bottom of that tab there is a setting like If there are CSSs specified in the document. By default for TEI P5 that setting states that if the TEI document refers to a CSS, that CSS alone will be used for Author editing.
So if your CSS is incomplete (you may not define all relevant TEI elements with display:block for example) indeed you may experience performance problems. Changing that radio button setting to merge them with CSSs..... will use your custom CSS referenced in the document in addition with the CSSs specified in the "Author" tab.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
steinerc
Posts: 2
Joined: Fri Oct 19, 2018 12:41 pm

Re: Severe performance issues in Author mode when using CSS

Post by steinerc »

Thanks for you quick reply!
if your CSS is incomplete
My test CSS had only one rule. to give <seg> a color. Is there a way to find out how the CSS has to look like to be "complete"? I couldn't really find anything pointing towards that direction in the documentation..
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: Severe performance issues in Author mode when using CSS

Post by Radu »

Hi,

By a complete CSS I meant a CSS which adds styles for all TEI elements. Indeed it seems your CSS would need to be used in addition to the base TEI CSSs provided by Oxygen. So you should change that radio button setting in the TEI framework configuration to merge your custom CSS with the default CSSs.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply