Skip to content

Conversation

@billyvg
Copy link
Member

@billyvg billyvg commented Dec 6, 2024

... removes requirement to have as="script" attribute. Also fixes prefetch to extract file extension instead of checking end of string since there can be URL parameters.

... removes requirement to have `as="script"` attribute. Also fixes prefetch to extract file extension instead of checking end of string since there can be URL parameters.
@billyvg billyvg requested a review from a team December 6, 2024 18:59
@billyvg billyvg marked this pull request as ready for review December 9, 2024 17:55
Copy link

@c298lee c298lee left a comment

Choose a reason for hiding this comment

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

why are we removing the requirement to have as="script" attribute

@billyvg
Copy link
Member Author

billyvg commented Dec 10, 2024

why are we removing the requirement to have as="script" attribute

modulepreload itself already implies the intent to load a JS module, there's no need to be specific about additional attributes.

@billyvg billyvg merged commit 81d8462 into sentry-v2 Dec 10, 2024
16 checks passed
@billyvg billyvg deleted the fix-snapshot-link-modulepreload-ignore-all branch December 10, 2024 18:52
billyvg added a commit to getsentry/sentry-javascript that referenced this pull request Dec 12, 2024
Includes the following fixes:

- fix: remote CSS does not get rebuilt properly ([#226](getsentry/rrweb#226))
- fix(snapshot): Set <link> attributes to null for remote CSS ([#227](getsentry/rrweb#227))
- fix(snapshot): Change to ignore all link[rel="modulepreload"] ([#228](getsentry/rrweb#228))
billyvg added a commit to getsentry/sentry-javascript that referenced this pull request Dec 12, 2024
Includes the following fixes:

- fix: remote CSS does not get rebuilt properly ([#226](getsentry/rrweb#226))
- fix(snapshot): Set <link> attributes to null for remote CSS ([#227](getsentry/rrweb#227))
- fix(snapshot): Change to ignore all link[rel="modulepreload"] ([#228](getsentry/rrweb#228))
billyvg added a commit to getsentry/sentry-javascript that referenced this pull request Dec 12, 2024
Includes the following fixes:

- fix: remote CSS does not get rebuilt properly
([#226](getsentry/rrweb#226))
- fix(snapshot): Set <link> attributes to null for remote CSS
([#227](getsentry/rrweb#227))
- fix(snapshot): Change to ignore all link[rel="modulepreload"]
([#228](getsentry/rrweb#228))
billyvg added a commit that referenced this pull request Dec 17, 2024
... removes requirement to have `as="script"` attribute. Also fixes
prefetch to extract file extension instead of checking end of string
since there can be URL parameters.
billyvg added a commit that referenced this pull request Dec 17, 2024
... removes requirement to have `as="script"` attribute. Also fixes
prefetch to extract file extension instead of checking end of string
since there can be URL parameters.
billyvg added a commit that referenced this pull request Jan 20, 2025
... removes requirement to have `as="script"` attribute. Also fixes
prefetch to extract file extension instead of checking end of string
since there can be URL parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants