Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Add AssetPreload check #605

Merged
merged 1 commit into from
Jul 14, 2022
Merged

Add AssetPreload check #605

merged 1 commit into from
Jul 14, 2022

Conversation

krzksz
Copy link
Contributor

@krzksz krzksz commented Jul 14, 2022

Hey 👋

The goal of this check is to discourage people from preloading assets using plain HTML in cases when it is possible to use Liquid filters instead.

It is sometimes the case that <link rel="preload" ...> is positioned late in the <head>, preventing the browser from discovering it early. In addition, this manual approach is not automatically converted to Link header so Shopify is not able to forward it to Early Hints response. These issues are not present when using Liquid filters mentioned above.

@krzksz krzksz requested review from macournoyer and charlespwd July 14, 2022 14:12
@krzksz krzksz mentioned this pull request Jul 14, 2022
@charlespwd charlespwd merged commit a6448ea into main Jul 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants