Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 31a833b

Browse files
committed
Allow to use ‘as’ attribute on HTML ‘link’ element
‘as’ attribute can be used as additional hint for the browser when preloading resources. This patch allows to use the ‘as’ attribute by HeadLink helper.
1 parent 5523511 commit 31a833b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Helper/HeadLink.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class HeadLink extends Placeholder\Container\AbstractStandalone
5151
'extras',
5252
'itemprop',
5353
'crossorigin',
54-
'integrity'
54+
'integrity',
55+
'as'
5556
];
5657

5758
/**

0 commit comments

Comments
 (0)