Skip to content

[WebLink] All mentions to preload must have an "as" attribute #11615

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

Closed
wants to merge 2 commits into from

Conversation

tristanbes
Copy link
Contributor

All the examples mentionning a preload must contain also a 'as' => 'xxx' attribute. Otherwise, it generates a warning on the browser console:

⚠️ <link rel=preload> must have a valid `as` value`

All the examples mentionning a `preload` must contain also a `'as' => 'xxx'` attribute. Otherwise, it generates a warning on the browser console: 

```
<link rel=preload> must have a valid `as` value`
```
@tristanbes tristanbes changed the title All mentions to preload must have an "as" attribute [WebLink] All mentions to preload must have an "as" attribute May 28, 2019
@javiereguiluz javiereguiluz added this to the 3.4 milestone May 28, 2019
@javiereguiluz
Copy link
Member

In the official standard we can confirm that it's mandatory: https://w3c.github.io/preload/#as-attribute

@tristanbes thanks for fixing this error. We're going to merge in 3.4 branch and then in the other branches too.

@tristanbes
Copy link
Contributor Author

@javiereguiluz do I need to change base branch to 3.4 ?

@javiereguiluz
Copy link
Member

No, don't worry. We can change the base while merging. The only problem is that in those cases, GitHub displays the PR as "closed" instead of "merged", but it's merged. Thanks.

@tristanbes tristanbes deleted the patch-5 branch May 28, 2019 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants