We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
placeholderSize
1 parent 6ee51ff commit 391717cCopy full SHA for 391717c
packages/nuxt/src/runtime/components/UnLazyImage.vue
@@ -51,11 +51,14 @@ const isSSR = process.server && (props.ssr ?? unlazy.ssr)
51
// const now = performance.now()
52
const pngPlaceholder = (isSSR && (props.thumbhash || props.blurhash))
53
? props.blurhash
54
- ? createPngDataUriFromBlurHash(props.blurhash, { ratio: props.placeholderRatio })
+ ? createPngDataUriFromBlurHash(props.blurhash, {
55
+ size: props.placeholderSize || unlazy.placeholderSize,
56
+ ratio: props.placeholderRatio,
57
+ })
58
: createPngDataUriFromThumbHash(props.thumbhash!)
59
: undefined
60
-// if (isSSR)
61
+// if (isSSR && process.dev)
62
// console.log(`[unlazy] BlurHash decoded in ${performance.now() - now}ms`)
63
64
onMounted(() => {
0 commit comments