~kyoheiu/frssco

04833d46c89deabc7664783be0fc287f82fb609e — Kyohei Uto 9 months ago 9786561
Add loading and decoding attr to image to improve performance
1 files changed, 2 insertions(+), 0 deletions(-)

M components/Contents.tsx
M components/Contents.tsx => components/Contents.tsx +2 -0
@@ 47,6 47,8 @@ export const Contents = (props: { data: FeedsState }) => {
                  <div className="entry-thumbnail">
                    <img
                      src={x.cover ? x.cover : "/alt.png"}
                      loading="lazy"
                      decoding="async"
                      onError={({ currentTarget }) => {
                        currentTarget.onerror = null;
                        currentTarget.src = "/alt.png";