Page 1 of 1
Severe performance issues in Author mode when using CSS
Posted: Fri Oct 19, 2018 12:50 pm
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!
Re: Severe performance issues in Author mode when using CSS
Posted: Fri Oct 19, 2018 2:53 pm
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
Re: Severe performance issues in Author mode when using CSS
Posted: Mon Oct 22, 2018 10:55 am
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..
Re: Severe performance issues in Author mode when using CSS
Posted: Mon Oct 22, 2018 11:08 am
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