This issue has been created
There are 6 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-221f2278-e1e4-4645-9570-edb7c222c0c0 XWIKI-22884 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-752afe7a-bd87-4e27-955b-1ffba1a7245e Marius Dumitru Florea created this issue on 17/Feb/25 14:24
 
Summary: Disable DOM mutation observers before generating the print layout with paged.js
Issue Type: cid:jira-generated-image-avatar-221f2278-e1e4-4645-9570-edb7c222c0c0 Improvement
Affects Versions: 16.4.6
Assignee: Unassigned
Components: Export - PDF
Created: 17/Feb/25 14:24
Priority: cid:jira-generated-image-static-major-98e41cfc-d8f2-4bdb-be2f-6c953486b2c5 Major
Reporter: Marius Dumitru Florea
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.

 
 

6 updates

 
cid:jira-generated-image-avatar-752afe7a-bd87-4e27-955b-1ffba1a7245e Changes by Marius Dumitru Florea on 17/Feb/25 14:25
 
Fix Version: 17.1.0
Fix Version: 16.4.7
Fix Version: 16.10.4
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Marius Dumitru Florea