From 65e704daa47c298449b84d9e8720301b3a6dc719 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 2 Mar 2022 14:59:02 -0500 Subject: [PATCH] Fix `next/image` noscript when blur and priority (#34973) Fixes a bug where browsers with scripts disabled did not work with ``. - Introduced in #32918 --- packages/next/client/image.tsx | 2 +- test/unit/image-rendering.test.ts | 33 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index 6fad0b58d355..8322783f0b51 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -722,7 +722,7 @@ export default function Image({ ref={imgRef} style={{ ...imgStyle, ...blurStyle }} /> - {isLazy && ( + {(isLazy || placeholder === 'blur') && (