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

Revoke blob URLs after the module is loaded #124

Merged
merged 5 commits into from May 16, 2021

Conversation

vovacodes
Copy link
Collaborator

No description provided.

@vovacodes vovacodes requested a review from guybedford May 15, 2021 11:47
function revokeObjectURLs(registryKeys) {
function cleanup() {
for (const key of registryKeys) {
const blobURL = registry[key]?.b;
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure if we have optional chaining for early modules implementations...

src/es-module-shims.js Show resolved Hide resolved
@vovacodes vovacodes requested a review from guybedford May 16, 2021 10:05
@vovacodes vovacodes force-pushed the feature/revoke-object-urls branch 2 times, most recently from 69f19b9 to 59e43a8 Compare May 16, 2021 10:08
Copy link
Owner

@guybedford guybedford left a comment

Choose a reason for hiding this comment

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

I really like this scheduling technique. We could possibly even apply this to the ESM analysis itself to break up jank during the "instantiate" phase.

@vovacodes
Copy link
Collaborator Author

@guybedford ha, good point actually, I can maybe look into that later 👍

@vovacodes vovacodes merged commit f6a11fc into main May 16, 2021
@vovacodes vovacodes deleted the feature/revoke-object-urls branch May 16, 2021 10:25
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.

None yet

2 participants