Skip to content

Support preloading fonts declared in theme options - #2461

Merged
tf merged 1 commit into
codevise:masterfrom
tf:preload-font-faces
Aug 6, 2026
Merged

Support preloading fonts declared in theme options#2461
tf merged 1 commit into
codevise:masterfrom
tf:preload-font-faces

Conversation

@tf

@tf tf commented Aug 6, 2026

Copy link
Copy Markdown
Member

Browsers only start downloading a font file once they lay out text that uses the font face. Font faces declared in theme options can now be marked with preload: true to render a link tag in the head of published entries which requests the file right away.

Only the first source of a face is preloaded since the browser downloads exactly one of the alternative formats.

REDMINE-21330

Browsers only start downloading a font file once they lay out text
that uses the font face. Font faces declared in theme options can now
be marked with `preload: true` to render a link tag in the head of
published entries which requests the file right away.

Only the first source of a face is preloaded since the browser
downloads exactly one of the alternative formats.

REDMINE-21330
@tf
tf merged commit fecce5c into codevise:master Aug 6, 2026
16 checks passed
@tf
tf deleted the preload-font-faces branch August 6, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant