Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for rel='preload' #2130

Closed
etylsarin opened this issue Dec 5, 2015 · 12 comments
Closed

Support for rel='preload' #2130

etylsarin opened this issue Dec 5, 2015 · 12 comments

Comments

@etylsarin
Copy link

W3C editor's draft: https://w3c.github.io/preload/

@Schweinepriester
Copy link
Contributor

@MarcoHengstenberg
Copy link

+1 as we already got the first browser supporting the feature

@paulirish
Copy link
Contributor

Chrome 50 now has support for <link rel=preload>.

It supports the following as values (also called "request destinations"):

as value example
script <link rel=preload href="dummy.js" as=script>
style <link rel=preload href="dummy.css" as=style>
image <link rel=preload href="square.png" as=image>
font <link rel=preload href="Ahem.ttf" as=font crossorigin>
video <link rel=preload href="test.mp4" as=video>
audio <link rel=preload href="test.oga" as=audio>
track <link rel=preload href="captions.vtt" as=track>
(invalid) <link rel=preload href="dummy.xml" as=foobarxmlthing>
(blank) <link rel=preload href="dummy.xml">

In Chrome, the script, style, image, and font get treatment similar to other resources of that type, applying any neccessary prioritization, etc. Currently all other types are successfully fetched, though as a generic resource.

A test page: https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/LayoutTests/http/tests/preload/onload_event.html

@jelmerdemaat
Copy link
Contributor

+1 (to upvote on feature suggestion list).

@forberg
Copy link

forberg commented Mar 9, 2016

+1

5 similar comments
@pablomoretti
Copy link

+1

@Chuclucillo
Copy link

+1

@orzage
Copy link

orzage commented Mar 22, 2016

+1

@rsteinwand
Copy link

+1

@PeterJCLaw
Copy link

+1

@Fyrd
Copy link
Owner

Fyrd commented Apr 3, 2016

Now available at http://caniuse.com/#feat=link-rel-preload

@Fyrd Fyrd closed this as completed Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests