Skip to content

Lazify pat-querystring: split registration from implementation#1613

Open
MrTango wants to merge 1 commit into
masterfrom
mockup-lazy-querystring
Open

Lazify pat-querystring: split registration from implementation#1613
MrTango wants to merge 1 commit into
masterfrom
mockup-lazy-querystring

Conversation

@MrTango

@MrTango MrTango commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

pat-querystring contributed ~33KB src to the eager patterns chunk on every page, though the widget only appears on Collection edit forms and the querystring criteria UI. It also statically imported the contentbrowser pattern, dragging an eager edge into pat-contentbrowser.

Split it into a thin registration module and querystring--implementation.js (holding the widget and the contentbrowser import).

addresses #1618

@MrTango
MrTango requested a review from petschki July 13, 2026 19:46
@petschki

Copy link
Copy Markdown
Member

/run-coredev-6.3-robottests

@petschki
petschki force-pushed the mockup-lazy-querystring branch from 0abaf74 to cea64e8 Compare July 17, 2026 08:06
…entation

pat-querystring contributed ~33KB src to the eager patterns chunk on every
page, though the widget only appears on Collection edit forms and the
querystring criteria UI. It also statically imported the contentbrowser
pattern, dragging an eager edge into pat-contentbrowser.

Split it into a thin registration module and querystring--implementation.js
(holding the widget and the contentbrowser import). The implementation is
grafted onto the single pattern instance in init(), so external consumers
that reach into instance state (pat-structure's textfilter reads
this.queryString.$sortOn/$sortOrder) keep working. Public options and
emitted markup are unchanged.

The implementation and its contentbrowser edge now load only on pages with a
.pat-querystring element.
@petschki
petschki force-pushed the mockup-lazy-querystring branch from cea64e8 to 8f166a1 Compare July 17, 2026 08:11

@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!

I've changed the commit message to align it with conventionals commit log.

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