From e5198a6328d9880e30776fcb72af3d6a09a8872e Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Wed, 19 Aug 2020 13:36:29 -0400 Subject: [PATCH] Skip adding background color for non-blurhashable items --- src/components/images/imageLoader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/images/imageLoader.js b/src/components/images/imageLoader.js index 3dc91ffa91..17ec55d7ac 100644 --- a/src/components/images/imageLoader.js +++ b/src/components/images/imageLoader.js @@ -87,7 +87,9 @@ import 'css!./style'; requestAnimationFrame(() => { if (elem.tagName !== 'IMG') { elem.style.backgroundImage = "url('" + url + "')"; - elem.style.backgroundColor = '#fff'; + if (!elem.classList.contains('non-blurhashable')) { + elem.style.backgroundColor = '#fff'; + } } else { elem.setAttribute('src', url); }