webP image support #1526
-
In order to maximize performance for a block under development that is using an inline CSS Can we simply enforce webP as standard image format or should we account for a fallback, e.g. by using https://caniuse.com/multibackgrounds:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Using background images are typically discouraged in Franklin land. You have no event hooks, you're on your own for responsive support, and you have less control over lazyness... if the selector matches, that image is loading whether it is in the viewport or not. |
Beta Was this translation helpful? Give feedback.
-
If you want to optimize performance, use the DOM that is already provided to you by Franklin. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I figured as much. I'll see how we can refactor our code to leverage existing markup. Thanks! |
Beta Was this translation helpful? Give feedback.
If you want to optimize performance, use the DOM that is already provided to you by Franklin.