Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Manipulation: Support $el.html(selfRemovingScript)#5378

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mgol merged 3 commits intojquery:mainfromgibson042:gh-5377-self-removing-script
Jan 8, 2024

Conversation

@gibson042
Copy link
Member

Fixesgh-5377

Summary

Don't try to remove a script element that has already removed itself.

With nearby improvements, +12 bytes to jquery.min.js (+1 gzipped).

Checklist

Copy link
Member

@mgolmgol left a comment

Choose a reason for hiding this comment

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

Looks good!

@mgolmgol added Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Manipulation labelsDec 27, 2023
@timmywiltimmywil removed the Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labelJan 8, 2024
@mgolmgol merged commit937923d intojquery:mainJan 8, 2024
mgol pushed a commit to mgol/jquery that referenced this pull requestJan 8, 2024
Don't try to remove a script element that has already removed itself.Fixesjquerygh-5377Closesjquerygh-5378(cherry-picked from commit937923d)
@mgolmgol added this to the3.7.2 milestoneJan 8, 2024
@mgol
Copy link
Member

mgol commentedJan 8, 2024

Landed onmain in937923d and on3.x-stable incbc15c9. The3.x-stable version doesn't include the size optimization since the logic is more complex & it couldn't be directly applied.

gibson042 added a commit to gibson042/jquery that referenced this pull requestJan 12, 2024
mgol pushed a commit that referenced this pull requestJan 12, 2024
mgol pushed a commit that referenced this pull requestJan 12, 2024
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@timmywiltimmywiltimmywil approved these changes

@mgolmgolmgol approved these changes

Assignees

No one assigned

Milestone

3.8.0

Development

Successfully merging this pull request may close these issues.

jQuery .load function errors if loading html with auto-removing script tag

3 participants

@gibson042@mgol@timmywil

[8]ページ先頭

©2009-2025 Movatter.jp