fix: replace render-blocking @import with <link> tags for Google Fonts#866
Open
Pcmhacker-piro wants to merge 1 commit into
Open
fix: replace render-blocking @import with <link> tags for Google Fonts#866Pcmhacker-piro wants to merge 1 commit into
Pcmhacker-piro wants to merge 1 commit into
Conversation
- Removed @import url('...Inter...') from core/base.css (render-blocking) - Added <link rel=preconnect> + <link rel=stylesheet> for Inter font to README Quick Start, full HTML example, and granular imports - Updated docs/index.html with the same font <link> tags in <head> Closes SAPTARSHI-coder#844
Author
|
hey @SAPTARSHI-coder i fixed your assign issue so please check it |
Author
|
heyy @SAPTARSHI-coder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@import url('...Inter...')from core/base.css (render-blocking)<link rel=preconnect>+<link rel=stylesheet>for Inter fontto README Quick Start, full HTML example, and granular imports
<link>tags in<head>Closes #844
Pull Request Description
CSS @import is render-blocking — it halts CSS parsing until the
font stylesheet downloads. Replaced with tags in HTML so
fonts start downloading immediately (no dependency on CSS parsing).
Type of Change
Performance fix — removes render-blocking font @import.
Submission Checklist
Notes for Maintainer
Users who add the CDN link without the Inter font will get
system font fallback (graceful degradation). Font preconnects
reduce DNS + TCP round trips before the font stylesheet is fetched.