-
-
Notifications
You must be signed in to change notification settings - Fork 996
perf: improving performance of website #4489
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
base: master
Are you sure you want to change the base?
perf: improving performance of website #4489
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@asyncapi/bounty_team |
…unused test files
Adding all performance commits wq
ab501cc to
829a1d2
Compare
Improvisation 1 : Implemented dynamic Imports for mermaidjs
Affected File : MDX.tsx
While analyzing Lighthouse performance reports, I noticed that the Total Blocking Time (TBT) was significantly high.
Further breakdown showed two major contributors:
To address this, I analyzed the largest chunks impacting the main thread and identified one that primarily included Mermaid.js a visualization library that wasn’t required on all pages.
Implemented Changes
Impact
Aim to bring TBT down from the current 500–600 ms range to around 150–200 ms and improving the overall performance of website
Linked Issue : #3186
Improvisation 2 : Font Performance Optimization
Files Changed:
utils/fonts.ts (new) - Inter & Work Sans config
pages/_app.tsx - Apply font variables
tailwind.config.ts - Update font families
pages/_document.tsx - Remove Google Fonts links
styles/globals.css - Add font-display: swap
Performance Impact:
Files Changed:
styles/globals.css - Replace external import with self-hosted @font-face
pages/_document.tsx - Add Fira Code preload
tailwind.config.ts - Optimize mono font stack
public/fonts/FiraCode-VF.woff2 (new) - Self-hosted font
Performance Impact