Type
magento2-module
Add ``, `` or `` resource hints to Magento 2's head.
magento2-module
CC-BY-4.0
None
None
None
None
None
Add <link rel='preconnect'>
, <link rel='prefetch'>
or <link rel='preload'>
resource hints to Magento 2's head.
preconnect
, prefetch
and preload
headers.crossorigin
attribute.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 app/code/Dan0sz/ResourceHints
.
bin/magento setup:upgrade
bin/magento setup:upgrade
bin/magento setup:di:compile
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.