mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 12:36:27 -05:00
[PR #24011] [MERGED] perf: improve splash LCP image discovery in app.html #114784
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24011
Author: @jmleksan
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/24/2026
Merged by: @tjbck
Base:
dev← Head:perf/splash-preload📝 Commits (1)
8c84667Enhance image loading performance by adding preload links and setting loading attributes for logos in app.html📊 Changes
1 file changed (+14 additions, -0 deletions)
View changed files
📝
src/app.html(+14 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.app.htmlsplash behavior.dev.perfChangelog Entry
Description
Improve first-load LCP for the splash screen by making the splash logo URL discoverable earlier from the initial HTML and by avoiding deferred image loading behavior.
<link rel="preload" as="image">for the active splash asset (/static/splash-dark.pngvs/static/splash.png) withfetchpriority="high", inserted from the existing inline theme bootstrap script insrc/app.html.#logoimage and the#logo-hermarkup path).Motivation: Lighthouse/LCP audits flag late discovery when the LCP image request is not visible in the initial document and/or is not prioritized like other above-the-fold content.
Added
src/app.html(as="image",fetchpriority="high").Changed
src/app.htmlFixed
crossoriginon preload not matching the eventual image request) by aligning preload attributes with the actual image fetch mode.Additional Information
Manual testing
/static/splash.png.hertheme path: confirm existing splash behavior remains correct (this change should not alterhersplash logic beyond loading hints on shared markup where applied).Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.