/
[cms] Performance issues when loading WYSIWYG stylesheet [5.2.2-B1]

[cms] Performance issues when loading WYSIWYG stylesheet [5.2.2-B1]

There are 2 types of content blocks (part of the page with variable content):

  • regular - editable in separate modal/popup window
  • inline - editable without leading the page.

To change content of a content block (regular/inline) an WYSIWYG editor is used. In the  INP-1587 - Getting issue details... STATUS  a change was made (to solve another issue), that introduced an internal HTTP call for getting URL of the stylesheet to be used by WYSIWYG editor.

Turns out, that when inline content blocks are used, then internal HTTP call is made for each of them. This results in a serious delay of page load, when many (e.g. 20) inline content blocks are used on the same page.

Solution

In the "\fckFCKHelper::getStyles" method cache results, so that no additional HTTP calls are made for same input data.

Related Discussions

Related Tasks

INP-1739 - Getting issue details... STATUS