Closed krzksz closed 2 years ago
Hmm why are the unit tests not running? 🤔
Oh. @krzksz, it's because you haven't used the Shopify remote when pushing your changes (you used a fork) and we probably have setup this repo to run unit tests only by employees. We should change that... or figure out a better way.
Closing in favour of https://github.com/Shopify/theme-check/pull/605
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 toLink
header so Shopify is not able to forward it to Early Hints response. These issues are not present when using Liquid filters mentioned above.