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

Add helper function to construct XPath from indexed breadcrumbs #1407

Draft
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

westonruter
Copy link
Member

See #1373 (comment)

It would be ideal if the "indexed breadcrumbs" could be passed around in the codebase and turned into XPath strings without having to hard-code the XPath string literals.

However, passing around array( array( 'DIV', 0 ) ) isn't necessarily feel so much better than /*[1][self::DIV].

Something to let bake for awhile.

… add/embed-optimizer-min-height-reservation

* 'trunk' of https://github.com/WordPress/performance:
  Move requiring of helper trait to bootstrap
  Reuse populate_url_metrics helper method
  Move duplicated logic into OD test helpers trait
  Output buffer as snapshot as message when assertEquals fails
  Move Optimization Detective test cases into separate files
  Move Embed Optimizer tests cases into separate files
  Move test cases into separate files
…ientRect

This is a more reasonable as a default element size for something which would be LCP.
@westonruter westonruter added [Type] Enhancement A suggestion for improvement of an existing feature [Plugin] Optimization Detective Issues for the Optimization Detective plugin [Plugin] Embed Optimizer Issues for the Embed Optimizer plugin (formerly Auto Sizes) labels Jul 26, 2024
@westonruter westonruter force-pushed the add/embed-optimizer-min-height-reservation branch 3 times, most recently from 1f5e5f8 to 77bea30 Compare August 2, 2024 00:06
@westonruter westonruter force-pushed the add/embed-optimizer-min-height-reservation branch 2 times, most recently from 019526c to 36e5620 Compare August 13, 2024 23:03
@westonruter westonruter force-pushed the add/embed-optimizer-min-height-reservation branch from f8971e9 to a4bab7e Compare August 17, 2024 00:15
Base automatically changed from add/embed-optimizer-min-height-reservation to trunk October 14, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Embed Optimizer Issues for the Embed Optimizer plugin (formerly Auto Sizes) [Plugin] Optimization Detective Issues for the Optimization Detective plugin [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant