Skip to content

frontend performance update#635

Open
lucasfreyptml wants to merge 1 commit into
Nachtzuster:mainfrom
lucasfreyptml:frontend-performances
Open

frontend performance update#635
lucasfreyptml wants to merge 1 commit into
Nachtzuster:mainfrom
lucasfreyptml:frontend-performances

Conversation

@lucasfreyptml

@lucasfreyptml lucasfreyptml commented Jun 29, 2026

Copy link
Copy Markdown

Add font-display: swap to web font

What

Adds font-display: swap; to the @font-face declaration for Roboto Flex in both style.css and dark-style.css.

Why

Lighthouse flagged the font as a render-blocking resource. Without a font-display value, browsers hide text until the font loads (FOIT). swap shows fallback text immediately and swaps to Roboto Flex once ready, improving perceived load time and Core Web Vitals.

Changes

style.css: added font-display: swap;
dark-style.css: added font-display: swap;

Notes

I am looking if there is apatite from maintainers to upgrade this fork UI implementation. I have setup BirdNET-Pi on my own Raspberry Pi and I am keen to give back to the community

@lucasfreyptml lucasfreyptml changed the title Add font-display: swap frontend performance update Jun 29, 2026
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