This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
The as
property of the HTMLLinkElement
interface returns a DOMString
representing the type of content being loaded by the HTML link, one of "script"
, "style"
, "image"
, "video"
, "audio"
, "track"
, "font"
, "fetch"
.
Syntax
var as = HTMLLinkElement.as HTMLLinkElement.as = as
Value
A DOMString
.
Specifications
Specification | Status | Comment |
PreloadThe definition of 'as' in that specification. | Candidate Recommendation | Initial definition. |
Browser Compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome
Full support 50 |
Edge
Full support 17 |
Firefox
Full support 56 |
IE
Full support Yes |
Opera
Full support 37 |
Safari
Full support Yes |
WebView Android
Full support 50 |
Chrome Android
Full support 50 |
Firefox Android
Full support 56 |
Opera Android
Full support 37 |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 5.0 |
Legend
- Full support
- Full support
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
HTMLLinkElement.as by Mozilla Contributors is licensed under CC-BY-SA 2.5.