Skip to content

Conversation

chaitanyapotti
Copy link

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

tag.attributes.integrity = hash
}
} else if (tag.tagName === 'link' && tag.attributes.rel === 'stylesheet') {
} else if (tag.tagName === 'link' && (tag.attributes.rel === 'stylesheet' || tag.attributes.rel === 'prefetch')) {
Copy link
Member

Choose a reason for hiding this comment

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

If I'm not mistaken, the linked issue only said it's implemented for preload links, not prefetch.

And Line#49-56 needs to be removed too.

@chaitanyapotti
Copy link
Author

Looks like the browsers don't actually check the integrity although setting the param works.! Tested on Chrome 81. Going to close this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants