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";