Skip to content

perf(preload): stop preloading icon collection endpoints - #54

Merged
petitphp merged 1 commit into
developfrom
fix/disable-icon-routes-preload
Oct 15, 2026
Merged

petitphp merged 1 commit into
developfrom
fix/disable-icon-routes-preload

Conversation

@petitphp

@petitphp petitphp commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Preloading every collection REST endpoint inflated page generation time and HTML payload weight.


Note

Low Risk
Editor bootstrap behavior changes (fewer inlined REST responses) but the collections index remains preloaded; main risk is a slightly slower first open of a collection picker if the client relied on preloaded per-collection payloads.

Overview
Stops preloading per-icon-collection REST routes in the block editor. preload_rest_endpoints now only adds /icons/v1/collections?context=edit and no longer registers a context=edit path for every registered collection.

This cuts block-editor HTML/bootstrap work when many collections exist; individual collection icon data is expected to load on demand instead of being inlined up front.

Tests drop the assertion that each collection name appears in the preload list; coverage for the collections endpoint and preserving existing preload entries is unchanged.

Reviewed by Cursor Bugbot for commit 00ec2cc. Bugbot is set up for automated code reviews on this repo. Configure here.

Preloading every collection REST endpoint inflated page generation time and HTML payload weight.
@petitphp
petitphp force-pushed the fix/disable-icon-routes-preload branch from b813f06 to 00ec2cc Compare October 15, 2026 06:52
@petitphp
petitphp merged commit e894b25 into develop Oct 15, 2026
6 checks passed
@petitphp
petitphp deleted the fix/disable-icon-routes-preload branch October 15, 2026 21:25
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.

1 participant