Web/API/HTMLLinkElement/as

From Get docs

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

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

as

Experimental'

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.