From 1348fb917a4b613bc06914e584f15c129a0fa0fe Mon Sep 17 00:00:00 2001 From: Ian Rohde Date: Wed, 28 Jun 2023 10:56:26 -0700 Subject: [PATCH 1/2] add html image dimensions for lighthouse --- frontend/templates/troubleshooting/Problem.tsx | 7 ++++--- frontend/templates/troubleshooting/index.tsx | 9 ++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/templates/troubleshooting/Problem.tsx b/frontend/templates/troubleshooting/Problem.tsx index 51e51013..485b7250 100644 --- a/frontend/templates/troubleshooting/Problem.tsx +++ b/frontend/templates/troubleshooting/Problem.tsx @@ -25,13 +25,14 @@ export default function ProblemCard({ problem }: { problem: Problem }) { > From f96b134fcd135f00762935791be54ca70bcf0e70 Mon Sep 17 00:00:00 2001 From: Ian Rohde Date: Wed, 28 Jun 2023 11:13:14 -0700 Subject: [PATCH 2/2] add lazyloading to Problem images - low-hanging prop addition to fix another lighthouse issue --- frontend/templates/troubleshooting/Problem.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/templates/troubleshooting/Problem.tsx b/frontend/templates/troubleshooting/Problem.tsx index 485b7250..2a6c7106 100644 --- a/frontend/templates/troubleshooting/Problem.tsx +++ b/frontend/templates/troubleshooting/Problem.tsx @@ -33,6 +33,7 @@ export default function ProblemCard({ problem }: { problem: Problem }) { outline="1px solid" outlineColor="gray.300" borderRadius="4px" + loading="lazy" />