Skip to content

[v3-4-test] UI: Preload base React plugin bundles with the page (#74777) - #75259

Merged
bbovenzi merged 1 commit into
v3-4-testfrom
backport-165f5ad-v3-4-test
Oct 21, 2026
Merged

bbovenzi merged 1 commit into
v3-4-testfrom
backport-165f5ad-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • UI: Preload base React plugin bundles with the page

A React plugin with destination "base" renders on every page, but the
UI only learns its bundle URL from the plugins endpoint after its own
scripts have run. The bundle download starts late, and the page moves
down when the plugin appears.

The server now adds a modulepreload link for each base app's bundle to
index.html, so the browser fetches it alongside the UI's scripts. The
UI's later import() of the same URL reuses the preloaded module. Only
plugins without a team are included, because the page is rendered
before the user is known.

  • Cover the empty and escaped cases of the preload links
    (cherry picked from commit 165f5ad)

Co-authored-by: Julian LaNeve [email protected]

* UI: Preload base React plugin bundles with the page

A React plugin with destination "base" renders on every page, but the
UI only learns its bundle URL from the plugins endpoint after its own
scripts have run. The bundle download starts late, and the page moves
down when the plugin appears.

The server now adds a modulepreload link for each base app's bundle to
index.html, so the browser fetches it alongside the UI's scripts. The
UI's later import() of the same URL reuses the preloaded module. Only
plugins without a team are included, because the page is rendered
before the user is known.

* Cover the empty and escaped cases of the preload links
(cherry picked from commit 165f5ad)

Co-authored-by: Julian LaNeve <[email protected]>
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:plugins area:UI Related to UI/UX. For Frontend Developers. kind:documentation labels Oct 21, 2026
@bbovenzi
bbovenzi marked this pull request as ready for review October 21, 2026 02:56
@bbovenzi
bbovenzi merged commit 6bc9a6a into v3-4-test Oct 21, 2026
119 of 130 checks passed
@bbovenzi
bbovenzi deleted the backport-165f5ad-v3-4-test branch October 21, 2026 13:10
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:plugins area:UI Related to UI/UX. For Frontend Developers. kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants