Opened 8 years ago

#14231 new Bug

Memory usage increase with MathJax plugin

Reported by: Anna Tomanek Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.4
Keywords: Cc: seadmemic@…

Description

(Reported on Zoho)

We use the CKEditor with the MathJax plugin where it is dynamically loaded into the page. When there are more then 2/3 MathJax formulas, the page goes very slow. On initial load the page uses 20mb of memory with one ckeditor instance without any formulas in the editor.

With 10 MathJax formulas the memory usage goes to 60mb (triple the amount).

When just using the MathJax plugin without CKEditor this doesn't happen. I suspect that there are memory leaks in the plugin for MathJax, we are using this in a Single Page Application so there are no page refreshes to clear the memory.

Steps to reproduce

  1. Go to and memory profile: https://jsfiddle.net/wcvufeo9/15/
  2. Go to and memory profile: https://jsfiddle.net/wcvufeo9/14/

Expected result

Maximum amount of memory increase with 130%.

Actual result

Memory increase of 300% with MathJax plugin.

Other details (browser, OS, CKEditor version, installed plugins)

Chrome: Version 46.0.2490.86 (64-bit) OSX CKEDITOR 4.5

config.extraPlugins = 
'mathjax,widget,lineutils,clipboard,dialog,sourcedialog,autogrow,confighelper,customimg,tableresize';

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy