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 errors reported by Lighthouse CI #661
Comments
When using GatsbyImage this should happen when default format setting is used. |
I have seen this happen on other site if one asks for more data in the page query than is really needed on the page. All page data is also loaded as a page-data.json for when the sites rehydrates into a Single Page Application (SPA). |
Hi @coderbyheart, I have experience and interest in resolving lighthouse errors, especially for accessibility. I noticed on the contributing section, it talked about joining the slack. Is that a pre-requisite for jumping into issues or am I free to go for it now? |
Hei @preeformance, not it's not a requirement, we do some org-wide discussions there, but the more detailed tech stuff happens here on GitHub. So feel free to jump in! Thanks for giving it a shot! |
Hey @preeformance I assigned this issue to you! Only contribution requirement we have is to add your name to the CONTRIBUTORS.md file when submitting your first PR! That takes care of the code of conduct / copyright stuff. 😄 Thanks for helping out! |
Hey @preeformance this is a BIG issue, so don't think you need to fix ALL the issues! Any improvement here is welcome! |
Thanks for that req heads up, @jtfairbank! You commented just in time. @coderbyheart I appreciate that! I plan to submit PRs page by page for issue areas so that if anything gets wild/broken, it can get tracked. I also have friends who may be interested in helping out with this and I plan to bring them on board. |
I solved the image issue on the #699 branch, just using /cc @raae |
@preeformance I've decided to unassign you, so others don't get the impression that this is fully covered. /Cc @jtfairbank |
Images in markdown can be replace with the Gatsby Image component using gatsby-remark-images. This requires there to |
I tried that but it didn't work for the custom nodes we generate for Forestry content. |
Setting all these values as part of A way to have custom nodes, but also get the all good stuff that happens in these resolvers could be to use this plugin Gatsby plugin: Parent Resolvers defining a schema for the custom nodes instead of setting the values directly on the nodes when creating. I would be happy to discuss this more on a call or something, as I find it a little hard to explain it all in a short reply like this. |
Just did a quick search ... we have 0 inline images in our content right now (regex search for |
See #661 Co-authored-by: Markus Tacker <m@coderbyheart.com>
See distributeaid#661 Co-authored-by: Markus Tacker <m@coderbyheart.com>
Hey @coderbyheart I think I can use the schema modifications like you suggested to load all of the images into the Gatsby API as "GatsbyImage"s. Will try to take a look at this during the week. @preeformance how's your work on the lighthouse issues going? Don't want to get in your way! |
@jtfairbank I have my eye on the SEO ones next but haven't written anything yet. If you want to go for it, feel free! |
Hi everyone,
If you have a bit more time, here's the full extent of what I noticed: B. I ran lighthouse for mobile and desktop on routes/uk-to-france/index.html and it scored 100 on SEO for both. C. I ran lighthouse for mobile and desktop on routes/uk-to-lebanon/index.html and it also scored 100 on SEO for both. D. So overall, it seems the scores are higher and I'm not sure why. It doesn't seem like there's been anything on this thread for the past month or so. Maybe PRs from other issues magically fixed some/all of the SEO issues? E. Recently another dev mentioned to me that Axe is a free accessibility tool similar to lighthouse but with better tests. The dev said that lighthouse only covers accessibility basics while Axe makes sure the site is compliant. I used it on the main landing page and there were 10 "moderate" issues that popped up. If making these changes is of interest, I can either create a separate issue or add another chart here for the Axe results on each page. |
@preeformance Thanks so much for staying on this one! And sorry for the delay getting back to you I've had the flu this week.
So it sounds like for
My recommendation would be that we focus on resolving the last of the Lighthouse issues and merge #659 in, then basically repeat the process with Axe in a new PR / issue. Can you make an issue to remind us that Axe is a next step? |
Closing because I will no longer continue this effort. |
#659 will enable Lighthouse CI for every build, however it will not mark a PR as failed because we first need to either fix the currently reported issues, or adapt the rules to ignore this kind of error.
You can also run Lighthouse yourself using Google Chrome:
npx node-static public
There are many errors on all pages, not just on the start page, so feel free to explore them. Please reference this issue in your PR.
Fixing the errors is preferred, so here is a list of good issues that can be solved:
Start page
http://127.0.0.1:8080/
Regular Route: UK→France
http://127.0.0.1:8080/routes/uk-to-france
<frame>
or<iframe>
elements do not have a titleLatest Lighthouse result
Latest build of the
lighthouse-ci
branchLighthouse result
Lighthouse result
Goal
The goals is that these three categories have a 💯 score:
Performance depends on many factors. So fix the low hanging fruits, then try to achieve what makes sense.
The text was updated successfully, but these errors were encountered: