References

Collection of references for web development.

HTML as attribute

Description

Specifies the type of content for the link, can only be used if the content is being preloaded.

Values

Value
audio
document
embed
fetch font
image
object
script
style
track
worker
video

Example

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>CSS Preload Example</title>
		<link rel="preload" href="style.css" as="style">
	</head>
	<body>
		<p>Page content...</p>
	</body>
</html>