Closed lakshaydewan closed 2 weeks ago
The changes in this pull request involve modifications to the Next.js application, specifically in how scripts and external resources are managed. The <script>
tag for GitHub buttons is replaced with the <Script>
component from next/script
, utilizing the lazyOnload
strategy for deferred loading. Additionally, the document structure is improved with a corrected link for Google Fonts and the addition of a CSS preload for the Fira Code font. An import statement for the Fira Code font is removed from the global CSS file, streamlining resource management.
File | Change Summary |
---|---|
pages/_app.tsx | Replaced <script> tag with <Script> component using strategy='lazyOnload' . |
pages/_document.tsx | Added import for <Script> , corrected preconnet to preconnect , added preload for Fira Code CSS, modified Google Fonts link from stylesheet to preload . |
styles/globals.css | Removed import statement for Fira Code font. |
ready-to-merge
, bounty
🐇 In the land of code where rabbits play,
Scripts now load in a lazy way.
Fonts are preloaded, errors are few,
Optimized paths for a faster view.
Hopping through changes, we cheer and say,
"Performance improved, hip-hip-hooray!" 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Built without sensitive environment variables
Name | Link |
---|---|
Latest commit | 1e2f9e4c856391027b4936dc984df00f531cfa2a |
Latest deploy log | https://app.netlify.com/sites/asyncapi-website/deploys/672baaea0cd7fd00087d841a |
Deploy Preview | https://deploy-preview-3368--asyncapi-website.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
⚡️ Lighthouse report for the changes in this PR: | Category | Score |
---|---|---|
🔴 Performance | 49 | |
🟢 Accessibility | 98 | |
🟢 Best practices | 92 | |
🟢 SEO | 100 | |
🔴 PWA | 33 |
Lighthouse ran on https://deploy-preview-3368--asyncapi-website.netlify.app/
Improved the lighthouse score on mobile devices by preloading fonts and using Native Script tag from next/script the FCP of the website went down from 3 seconds average to 1.5 seconds improving the performance greatly.
Summary by CodeRabbit
New Features
<Script>
component andlazyOnload
strategy.Bug Fixes
Chores