Performance and SEO considerations when using blurry images #20
-
I was wondering, what the best solution for blurry images is. I can render the data URI on the server for the blurry image and include it in the HTML, The thumbhash would be way smaller than the data URI. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's no direct answer, since the blurry image generation strategy depends on your use-case. Personally, I use client-side generation for SSR applications and client generation for SPA's. Here are a few considerations: Performance and efficiency: SEO implications: |
Beta Was this translation helpful? Give feedback.
There's no direct answer, since the blurry image generation strategy depends on your use-case. Personally, I use client-side generation for SSR applications and client generation for SPA's.
Here are a few considerations:
Performance and efficiency:
If network latency is a big concern, it might make more sense to generate the data URI on the server side and send that down with the initial HTML payload. This approach would allow the image to start rendering immediately as the HTML is parsed and improve the overall performance of your page load. Rendering the image won't be delayed since the client won't need to wait for the JS bundle to execute.
SEO implications:
If SEO is a major concern f…