Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolandfarkasCOM/15bc9a04c52e8278926797dbb03ad540 to your computer and use it in GitHub Desktop.
Save rolandfarkasCOM/15bc9a04c52e8278926797dbb03ad540 to your computer and use it in GitHub Desktop.
Enable preload links for responsive hero images which have srcset and sizes attributes. This is disabled by default because only Chrome supports imagesrcset and imagesizes on preload links. This eliminates the Optimizer from raising this notice: CannotPreloadImage: Not preloading the hero image because of the presence of a srcset attribute…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment