Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: preload font and load theme script asynchronously #380

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

satnaing
Copy link
Owner

Improve page performance by preloading the font with as="style" and loading the theme script asynchronously.

Improve page performance by preloading the font with
`as="style"` and loading the theme script asynchronously.
@satnaing satnaing merged commit cbbb3eb into main Sep 16, 2024
3 checks passed
@satnaing satnaing deleted the perf/improve-performance branch September 16, 2024 14:28
@No1ceTea
Copy link

No1ceTea commented Oct 1, 2024

Hello

I have this hints error when I build it :

`src/layouts/Layout.astro:94:38 - warning ts(6133): 'rel' is declared but its value is never read.

94 onload="this.onload=null; this.rel='stylesheet';"
~~~
src/layouts/Layout.astro:94:20 - warning ts(6133): 'onload' is declared but its value is never read.

94 onload="this.onload=null; this.rel='stylesheet';"
~~~~~~
`

I'm not sure but I think it doesn't improve page performance at all

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.

2 participants