mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add web.dev reference
This commit is contained in:
parent
5b3e0721fd
commit
ad3558d6ef
1 changed files with 2 additions and 2 deletions
|
|
@ -45,8 +45,8 @@ export function getVideoImages ( video ) {
|
||||||
jpeg: jpgSource
|
jpeg: jpgSource
|
||||||
}
|
}
|
||||||
|
|
||||||
// Responsive Preloads
|
// Responsive Preloads - https://web.dev/preload-responsive-images/
|
||||||
// https://blog.laurenashpole.com/post/658079409151016960/preloading-images-in-a-responsive-webp-world
|
// Responsive Preloads with image types - https://blog.laurenashpole.com/post/658079409151016960/preloading-images-in-a-responsive-webp-world
|
||||||
// <link rel="preload" as="image" href="large-image.webp" media="(min-width: 768px)" imagesrcset="large-image.webp, large-image-2x.webp 2x" type="image/webp" />
|
// <link rel="preload" as="image" href="large-image.webp" media="(min-width: 768px)" imagesrcset="large-image.webp, large-image-2x.webp 2x" type="image/webp" />
|
||||||
const preloads = Object.entries( sources ).map( ([ typeKey, typeSource ]) => {
|
const preloads = Object.entries( sources ).map( ([ typeKey, typeSource ]) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue