We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb0d87 commit fd92ba3Copy full SHA for fd92ba3
src/HttpPush.php
@@ -40,7 +40,7 @@ public function generateLinks() : array
40
$links = [];
41
42
foreach ($this->resources as $row) {
43
- $links[] = '<'.$row['path'].'>; rel=preload; as='.$row['type'];
+ $links[] = '<'.$row['path'].'>; rel=preload; as='.$row['type'].($row['type']==='font'?'; crossorigin':'');
44
}
45
46
return $links;
0 commit comments