-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Increase base Lighthouse score of default Create Next App template #23887
Conversation
@@ -57,7 +58,13 @@ export default function Home() { | |||
rel="noopener noreferrer" | |||
> | |||
Powered by{' '} | |||
<img src="/vercel.svg" alt="Vercel Logo" className={styles.logo} /> | |||
<img |
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.
This can use next/image
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.
I was thinking of adding next/image here but wasn't sure for the purpose of the default template did you want to include it? I can update to use if so.
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.
Yeah feel free to add it in a separate PR 👍
How did you run these numbers? This change shouldn't have that type of effect, sounds like it was ran on a local machine 🤔 |
@timneutkens yeah these were just run locally that is why metrics are shifting. (sorry should have cut them out of the screenshot) Main figures effected by these changes are SEO and Accessibility. Edit: The numbers increased due to fixing two rules that were failing in the Lighthouse report.
|
Follow PR to #23887 to add next/image. Only other change was wrapping the image in a span to allow for the margin that was previously on the actual `<img>` ## Documentation / Examples - [x] Make sure the linting passes
Follow PR to vercel#23887 to add next/image. Only other change was wrapping the image in a span to allow for the margin that was previously on the actual `<img>` ## Documentation / Examples - [x] Make sure the linting passes
Very small update to increase the base lighthouse score of the default template for Create Next App.
Before:
After:
To get a full 💯 sweep,
<html>
would need a lang attribute set. I think adding a custom document or i18n to the default template would probably be just a bit too much for such a simple template.Documentation / Examples