chore: configurable loading

This commit is contained in:
Cory Dransfeldt 2023-10-27 13:45:19 -07:00
parent 4108ce86ef
commit a05666f1c7
4 changed files with 12 additions and 4 deletions

View file

@ -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',
})