Skip to content

Commit a3a99fd

Browse files
committed
Add modulepreload link to ampResourceHints
1 parent f46ecf0 commit a3a99fd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Optimizer/Transformer/ReorderHead.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ private function registerLink(Element $node)
248248
|| $this->containsWord($rel, Attribute::REL_PREFETCH)
249249
|| $this->containsWord($rel, Attribute::REL_DNS_PREFETCH)
250250
|| $this->containsWord($rel, Attribute::REL_PRECONNECT)
251+
|| $this->containsWord($rel, Attribute::REL_MODULEPRELOAD)
251252
) {
252253
if ($this->isHintForAmp($node)) {
253254
$this->ampResourceHints[] = $node;

0 commit comments

Comments
 (0)