A Rails app's Lighthouse score shows a 4-second LCP. The hero image is a 3MB PNG. Best Rails-side fix?
-
A
Enable HTTP/2 on Puma to parallelize asset loading
-
B
Use Active Storage variants to serve resized, compressed WebP images
-
C
Preload the image in the <head> with a link tag
-
D
Store the image in Redis to reduce disk I/O