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

fix: Improving the lighthouse Score#3356 #3367

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import '../styles/globals.css';

import type { AppProps } from 'next/app';
import Head from 'next/head';
import Script from 'next/script';
import { appWithTranslation } from 'next-i18next';
import React from 'react';

Expand All @@ -22,7 +23,7 @@ function MyApp({ Component, pageProps, router }: AppProps) {
<AppContext.Provider value={{ path: router.asPath }}>
{/* <MDXProvider components={mdxComponents}> */}
<Head>
<script async defer src='https://buttons.github.io/buttons.js'></script>
<Script async defer src='https://buttons.github.io/buttons.js' strategy='lazyOnload'></Script>
</Head>
<AlgoliaSearch>
<div className='flex min-h-screen flex-col'>
Expand All @@ -44,4 +45,4 @@ function MyApp({ Component, pageProps, router }: AppProps) {
);
}

export default appWithTranslation(MyApp);
export default appWithTranslation(MyApp);
12 changes: 7 additions & 5 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import Document, { Head, Html, Main, NextScript } from 'next/document';
import React from 'react';
import Script from 'next/script';

import i18nextConfig from '../next-i18next.config';


class MyDocument extends Document {
static async getInitialProps(ctx: any) {
const initialProps = await Document.getInitialProps(ctx);
Expand All @@ -18,21 +20,21 @@ class MyDocument extends Document {
<Html lang={currentLocale as string}>
<Head>
{/* Load Work Sans font */}
<link rel='preconnect' href='https://fonts.googleapis.com' />
<link rel='preconnect' href='https://fonts.gstatic.com' crossOrigin='anonymous' />
<link rel="preconnet" href='https://fonts.googleapis.com' />
<link rel="preconnect" href='https://fonts.gstatic.com' crossOrigin='anonymous' />
{/* eslint-disable-next-line max-len */}
<link rel='preload'href='https://cdn.jsdelivr.net/gh/tonsky/FiraCode@4/distr/fira_code.css' />
<link
rel="preload"
href='https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Work+Sans:wght@200;300;400;500;600;700;800;900&display=swap'
rel='stylesheet'
/>

{/* Icons */}
<link rel='icon' href='/favicon.ico' />
<link rel='icon' type='image/png' sizes='16x16' href='/favicon-16x16.png' />
<link rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png' />
<link rel='icon' type='image/png' sizes='194x194' href='/favicon-194x194.png' />

<script async defer src='https://buttons.github.io/buttons.js'></script>
<Script async defer src='https://buttons.github.io/buttons.js' strategy='lazyOnload'></Script>
</Head>
<body>
<Main />
Expand Down
Binary file modified public/img/social/cli-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/social/generator-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/social/githubactions-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/social/meetings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/social/modelina-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/social/parsers-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/social/website-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import url(https://cdn.jsdelivr.net/gh/tonsky/FiraCode@4/distr/fira_code.css);
@import url(https://cdn.jsdelivr.net/npm/@docsearch/css@3);

@import "swiper/css";
Expand Down
Loading