Preloading via a Header
<link rel="preload" href="{{ asset('images/spinner.gif') }}" as="image">
Preloading via a Header:
<link rel="preload" href="{{ preload(asset('images/spinner.gif'), { as: 'image' }) }}" as="image">
It also tells Symfony that it should add a preload header to the response. So as the browser starts downloading the response, at the very top it sees a hint that it should start downloading that image. Even before it downloads the HTML.
composer require symfony/web-link