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

Preload checks for blocking extensions #902

Merged
merged 3 commits into from
Aug 19, 2020
Merged

Conversation

tharders
Copy link
Collaborator

Preload check for runtime now also allows hosted version and javascript module version.
Do we need to change the warning message now?

Preload check for runtime allows hosted version and javascript module version
.map((s) => `[${s}]`)
.join("");
const isPreloaded = $(`link${attr}`).length > 0;
const mjsAttr = ["href$='/v0.mjs'", "rel='modulepreload'"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're currently not using modulepreload so please omit checking for this attribute

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For mjs we now simply check if the rel attribute ends with preload, so normal preload (as it is used now) or modulepreload will be fine.

@sebastianbenz sebastianbenz merged commit 8e30d04 into main Aug 19, 2020
@sebastianbenz
Copy link
Collaborator

Thanks!

@sebastianbenz sebastianbenz deleted the feature/linter-preloads branch August 19, 2020 17:44
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.

2 participants