chore: configurable loading
This commit is contained in:
parent
4108ce86ef
commit
a05666f1c7
4 changed files with 12 additions and 4 deletions
|
@ -27,6 +27,7 @@ const imageShortcode = async (
|
|||
src,
|
||||
alt,
|
||||
className = undefined,
|
||||
loading = 'lazy',
|
||||
widths = [75, 150, 300, 600, 900, 1200],
|
||||
formats = ['webp', 'jpeg'],
|
||||
sizes = '100vw'
|
||||
|
@ -71,7 +72,7 @@ const imageShortcode = async (
|
|||
width: largestUnoptimizedImg.width,
|
||||
height: largestUnoptimizedImg.height,
|
||||
alt,
|
||||
loading: 'lazy',
|
||||
loading,
|
||||
decoding: 'async',
|
||||
})
|
||||
|
||||
|
|
Reference in a new issue