Skip to content

Use win and doc aliases consistently #2001

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

Merged
merged 1 commit into from
May 8, 2025
Merged

Use win and doc aliases consistently #2001

merged 1 commit into from
May 8, 2025

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented May 5, 2025

In detect.js, there are win and doc constants which are aliased to window and document respectively, with the intention that the constant could be further minified (e.g. to w and d) to further compress the output. This additional symbol minification is not currently being done, but at least we should be consistent about using these aliases.

This was discovered as part of #1999 (comment).

@westonruter westonruter requested a review from swissspidy May 5, 2025 22:15
@westonruter westonruter requested a review from felixarntz as a code owner May 5, 2025 22:15
@westonruter westonruter added [Type] Bug An existing feature is broken no milestone PRs that do not have a defined milestone for release [Plugin] Optimization Detective Issues for the Optimization Detective plugin skip changelog PRs that should not be mentioned in changelogs labels May 5, 2025
@westonruter westonruter requested review from ShyamGadde and b1ink0 May 7, 2025 21:50
@westonruter westonruter removed the no milestone PRs that do not have a defined milestone for release label May 8, 2025
Copy link

github-actions bot commented May 8, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <[email protected]>
Co-authored-by: b1ink0 <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@westonruter westonruter merged commit 4279a01 into trunk May 8, 2025
22 of 23 checks passed
@westonruter westonruter deleted the add/win-aliases branch May 8, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Optimization Detective Issues for the Optimization Detective plugin skip changelog PRs that should not be mentioned in changelogs [Type] Bug An existing feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants