Skip to content

Commit

Permalink
fix(gatsby-plugin-image): Remove preload tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jan 12, 2021
1 parent 78e5e47 commit ff84d4c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/gatsby-plugin-image/src/components/main-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ export const MainImage = forwardRef<HTMLImageElement, MainImageProps>(
function MainImage({ ...props }, ref) {
return (
<>
{props.loading === `eager` && (
<link
rel="preload"
as="image"
href={props.fallback.src}
// TODO: remove this if imagesrcset is added to the types
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
imagesrcset={props.fallback.srcSet}
imagesizes={props.fallback.sizes}
/>
)}
<Picture ref={ref} {...props} />
<noscript>
<Picture {...props} shouldLoad={true} />
Expand Down

0 comments on commit ff84d4c

Please sign in to comment.