You could use the <picture> element and srcset attribute if you have your images prepared at different sizes: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images …
-
-
Dziękujemy. Twitter skorzysta z tych informacji, aby Twoja oś czasu bardziej Ci odpowiadała. CofnijCofnij
-
-
-
Manually resize and optimize the images locally then use srcset which act like media queries to the browser. If you add some view port params that would later on automatically work with things like Cloudinary and server you the detected next gen formats.
Dziękujemy. Twitter skorzysta z tych informacji, aby Twoja oś czasu bardziej Ci odpowiadała. CofnijCofnij
-
-
-
Hey Justin, Srcset and then add <meta http-equiv="Accept-CH" content="DPR,Width,Viewport-Width"> to your HTML page. When you use srcset as media queries you can include each image size.
-
If you, later on, decide to use Cloudinary you will gain get the benefits of auto-detecting next formats, optimize and resize the images on the fly for you.
Koniec rozmowy
Nowa rozmowa -
-
-
Did you figure out how to do background images? My current solution involves a separate, ‘webp-ized’ CSS file and a .webp-ok class on the body. That lets me use pre-prepared static files instead of having to run everything through Glide.
-
Ten tweet jest niedostępny.
- Pokaż odpowiedzi
Nowa rozmowa -
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.
building