Skip to content

Conversation

@kt-12
Copy link
Member

@kt-12 kt-12 commented May 4, 2023

Trac ticket: https://core.trac.wordpress.org/ticket/58213

Increase wp_omit_loading_attr_threshold threshold to 3


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@kt-12 kt-12 marked this pull request as draft May 4, 2023 13:55
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@kt-12 The code so far looks good, however there are test failures, see e.g. https://github.com/WordPress/wordpress-develop/actions/runs/4883643267/jobs/8715275896?pr=4428#step:17:300.

I think a simple way to fix them would be to update the relevant tests to use the wp_omit_loading_attr_threshold filter to return 1 like before.

kt-12 and others added 4 commits May 12, 2023 19:35
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
@kt-12 kt-12 marked this pull request as ready for review May 12, 2023 14:40
@kt-12 kt-12 requested a review from felixarntz May 12, 2023 14:59
@kt-12
Copy link
Member Author

kt-12 commented May 12, 2023

@felixarntz This is good for review. I have fixed both the test error (here) by using wp_omit_loading_attr_threshold filter.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@kt-12 LGTM!

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Left a few follow up comments, no additional feedback beyond what @westonruter and @spacedmonkey pointed out.

Copy link
Member

@spacedmonkey spacedmonkey left a comment

Choose a reason for hiding this comment

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

Thanks for actioning feedback. Looks go to go.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thanks @kt-12, LGTM!

@felixarntz
Copy link
Member

Committed in https://core.trac.wordpress.org/changeset/55816 🎉

@felixarntz felixarntz closed this May 16, 2023
@joemcgill joemcgill deleted the enhancement/58213 branch June 9, 2023 18:58
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.

4 participants