Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22884

Disable DOM mutation observers before generating the print layout with paged.js

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 16.4.7, 16.10.4, 17.1.0
    • 16.4.6
    • Export - PDF
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Paged.js is used to split and layout the exported content into print pages. This process triggers a ton of DOM mutation events. Given that paged.js is called after the page is ready, i.e. after the exported content is loaded and fully rendered, it means there should be no other changes made to the exported content after paged.js starts the layout process, so there's no point in keeping the DOM mutation observers enabled (we don't want them to react to the DOM changes made by paged.js). This can win us a few seconds on large exports. For XWiki Standard we have a single DOM mutation observer active, coming from the Async Rendering module, but others may be provided by extensions.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: