<link rel='prefetch'> or
<link rel='preload'> resource hints to Magento 2’s head.
- Tweak your Magento 2 store’s performance by adding custom
- Easily configurable at default, website and store view level (incl. sort order).
Installation using Composer is easy and recommended. From a terminal, just run:
composer require dan0sz/resource-hints-magento2
If you can’t or dont want to use Composer, you can download the
master-branch of this repository and copy the contents to
bin/magento setup:static-content:deploy [locales e.g. en_US nl_NL]
After installation a new tab is added to Stores > Configuration > General > Web called Resource Hints. From here the preloadable resources can easily be configured, such as in the example below:
Download the latest release of this Magento 2 extension from Github.