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

100% lighthouse score for progressive web app #7482

Merged
merged 2 commits into from
Aug 7, 2019

Conversation

dscanlan
Copy link
Contributor

@dscanlan dscanlan commented Aug 6, 2019

This is a continuation for PR #5926

Testing a newly created PWA app currently scores low on the lighthouse test from google. With CRA doing a great job of scaffolding, these changes makes creating a PWA straight out of the box more straight forward.

Things to do for template and template-typescript:

  • add two images and updates the manifest.json file
  • add a robots.txt file
  • update the index.html file to add
    • <meta name="description" content="Web site created using create-react-app">
    • <link rel="apple-touch-icon" href="logo192.png">

Comments Resolved:

  • removed <main>
  • added comment in robots.txt
  • ran images through tinypng

PWA Lighthouse reports

App created without these changes

image

App created with lighthouse changes

image

@dscanlan dscanlan marked this pull request as ready for review August 6, 2019 13:45
@mrmckeb mrmckeb added this to the 3.1 milestone Aug 6, 2019
@mrmckeb
Copy link
Contributor

mrmckeb commented Aug 6, 2019

I'll see if we can get a second opinion here, but this looks great. Thanks @dscanlan!

@mrmckeb mrmckeb self-assigned this Aug 6, 2019
@mrmckeb mrmckeb merged commit 65a891c into facebook:master Aug 7, 2019
@dscanlan dscanlan deleted the ds_pwa_lighthouse branch August 7, 2019 09:41
@JLarky
Copy link

JLarky commented Aug 10, 2019

Doesn't this robots.txt disable Google image search? If it does maybe there has to be documentation on how to make sure your images are (not) indexed.

@iansu
Copy link
Contributor

iansu commented Aug 10, 2019

@JLarky That's a good point. Maybe we should remove /static/ from robots.txt.

@lock lock bot locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants