Skip to content

Lazify pat-recurrence: split registration from implementation#1614

Merged
petschki merged 1 commit into
masterfrom
mockup-lazy-recurrence
Jul 17, 2026
Merged

Lazify pat-recurrence: split registration from implementation#1614
petschki merged 1 commit into
masterfrom
mockup-lazy-recurrence

Conversation

@MrTango

@MrTango MrTango commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

pat-recurrence was the single largest pattern in the eager patterns chunk (~52KB src, incl. three statically-imported XML templates and the Modal dependency), loaded on every page though the widget only appears on Event add/edit forms.

Split it into a thin registration module (trigger, parser, and an init() that dynamically imports the implementation on first match) plus recurrence--implementation.js holding the widget, the XML templates and the Modal import. Follows the existing tinymce--implementation lazy-pattern convention.

addresses #1618

@petschki petschki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

changed commit message same as in #1613

@petschki

Copy link
Copy Markdown
Member

/run-coredev-6.3-robottests

…ntation

pat-recurrence was the single largest pattern in the eager patterns chunk
(~52KB src, incl. three statically-imported XML templates and the Modal
dependency), loaded on every page though the widget only appears on Event
add/edit forms.

Split it into a thin registration module (trigger, parser, and an init()
that dynamically imports the implementation on first match) plus
recurrence--implementation.js holding the widget, the XML templates and the
Modal import. Follows the existing tinymce--implementation lazy-pattern
convention. Public options and markup contract are unchanged.

The implementation now loads only on pages with a .pat-recurrence element,
in its own chunk.
@petschki
petschki force-pushed the mockup-lazy-recurrence branch from 3fe5eb5 to 901d89c Compare July 17, 2026 10:06
@petschki
petschki merged commit 6951414 into master Jul 17, 2026
3 checks passed
@petschki
petschki deleted the mockup-lazy-recurrence branch July 17, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants