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

Use defer loading strategy for frontend view scripts #52536

Merged
merged 28 commits into from
Jul 25, 2023

Commits on Jul 11, 2023

  1. Configuration menu
    Copy the full SHA
    7e469ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23b7aad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aefd67a View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Merge branch 'trunk' of https://github.com/WordPress/gutenberg into a…

    …dd/defer-script-loading-strategy
    
    * 'trunk' of https://github.com/WordPress/gutenberg:
      Update Changelog for 16.2.0
      Adding support for defined IDs in `TextControl` component (#52028)
      Bump plugin version to 16.2.0
      Revert "Bump plugin version to 16.2.0"
      Bump plugin version to 16.2.0
      Add maxLength to LinkControl search items (#52523)
      [RNMobile] Update Editor block inserter button styles and default text input placeholder/selection styles (#52269)
      Site Editor: Reset device preview type when exiting the editing mode (#52566)
      Trim footnote anchors from excerpts (#52518)
      Add back old Navigation and File blocks JavaScript implementation when Gutenberg is not installed (#52553)
      Block Editor: Ensure synced patterns are accounted for in 'getAllowedBlocks' (#52546)
      Fix md5 class messed up with new block key (#52557)
      Fix entity cache misses for single posts due to string as recordKey (#52338)
      Make "My patterns" permanently visible (#52531)
      Hide site hub when resizing frame upwards to avoid overlap (#52180)
      Fix "Manage all patterns" link appearance (#52532)
      Update navigation menu title size & weight in detail panels (#52477)
      Site Editor Patterns: Ensure sidebar does not shrink when long pattern titles are used (#52547)
      Site Editor: Restore quick inserter 'Browse all' button (#52529)
      Patterns: update the title of Pattern block in the block inspector card  (#52010)
    westonruter committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    f89e31a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3dd37c2 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Configuration menu
    Copy the full SHA
    4f7301b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'trunk' of https://github.com/WordPress/gutenberg into a…

    …dd/defer-script-loading-strategy
    
    * 'trunk' of https://github.com/WordPress/gutenberg: (24 commits)
      Add filter to turn off Interactivity API for a block (#52579)
      Search: Remove unnecessary useEffect (#52604)
      Navigation: Simplify the useSelect for useNavigationMenus (#51977)
      Item: Unify focus style and add default font styles (#52495)
      Update Changelog for 16.2.1
      Bump plugin version to 16.2.1
      Avoid passing undefined `selectedBlockClientId` in `BlockActionsMenu` (#52595)
      Cover Block: Fix block deprecation when fixed background is enabled (#51612)
      Nav block: link text color inheritance fixes and tests (#51710)
      Stabilize defaultBlock, directInsert API's and getDirectInsertBlock selector (#52083)
      Fix console warning by improving error handling in Nav block classic menu conversion (#52591)
      Fix: Remove link action of Link UI for draft pages created from Nav block does not correctly remove link. (#52415)
      Lodash: Remove remaining `_.get()` from block editor and deprecate (#52561)
      Fix importing classic menus (#52573)
      ResizableFrame: Make keyboard accessible (#52443)
      Site Editor: Fix navigation menu sidebar actions order and label (#52592)
      correct a typo: sapce -> space (#52578)
      Avoid errors in Dimension visualizers when switching between iframed and non-iframed editors (#52588)
      Patterns: Add client side pagination to patterns list (#52538)
      Site Editor: Make sidebar back button go *back* instead of *up* if possible (#52456)
      ...
    westonruter committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    3e7c73e View commit details
    Browse the repository at this point in the history
  3. Optimize submenu-on-click view script

    * Fully leverage event delegation to allow async loading strategy.
    * Keep track of whether a submenu is open to short-circuit event handlers.
    * Use passive event listeners.
    westonruter committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    34faf8f View commit details
    Browse the repository at this point in the history
  4. Optimize modal view script

    * Fully leverage event delegation to allow async loading strategy.
    * Remove event listener for anchor clicks in modal when modal is closed.
    * Use passive event listeners.
    westonruter committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    5329284 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2bafd37 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4b86ce4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    95beb24 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    404128f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Refactor Search block view script

    * Adopt asynchronous loading strategy.
    * Use event delegation.
    * Collapse expanded blocks when tabbing out of expanded Search block.
    * Only attach keydown/keyup event handlers while Search block is expanded.
    * Ensure search button's aria-label is translated.
    * Ensure Search button's type is restored to 'button' instead of deleting type (since no type is same as 'submit').
    * Use passive event listeners.
    westonruter committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    4ccd709 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7863e9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c41d35b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b50a2b8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a18d055 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    712c4cf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b2db932 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4a7fc46 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Merge branch 'trunk' into add/defer-script-loading-strategy

    * trunk: (36 commits)
      Use `_get_block_template_file` function and set $area variable. (#52708)
      Change Delete page menu item to Move to trash. (#52641)
      Search block: Enqueue view script through block.json (#52552)
      Patterns: fix bug with Create Patterns menu not showing in site editor page editing (#52671)
      Github workflow: add a PHP backport changes action (#52096)
      Add layout API documentation. (#52673)
      Show uncategorized patterns on the Editor > Patterns page (#52633)
      Patterns: Remove `reusable` text from menu once rename hint has been dismissed (#52664)
      Update locked pattern tooltips (#52497)
      Rich Text/Footnotes: fix getRichTextValues for useInnerBlocksProps.save (#52682)
      Use posts instead of template parts for navigation color tests (#52654)
      Site Editor: Don't allow creating template part on the Patterns page for non-block themes (#52656)
      Site Editor: Fix incorrect 'useSelect' usage (#52683)
      Update issue gardening automation with new label (#52173)
      i18n: Make the tab labels of `ColorGradientSettingsDropdown` component translatable (#52669)
      Post Content link color should not be applied to placeholder component links (#52367)
      [Mobile] Update toolbar icons and colors (#52336)
      Avoid copying global style presets via the styles compatibility hook (#52640)
      Show warning on removal of Post Template block in the site editor. (#52666)
      Backport tools: sort PRs to be cherry picked by merged/closed date (#52667)
      ...
    westonruter committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    7fe5534 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ffd9e5c View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. Configuration menu
    Copy the full SHA
    26c06ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86b8e36 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aab0b4b View commit details
    Browse the repository at this point in the history
  4. Remove defer from comment-reply for now

    Co-authored-by: Felix Arntz <[email protected]>
    westonruter and felixarntz authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    73e3564 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/trunk' into add/defer-script-loa…

    …ding-strategy
    
    * origin/trunk: (59 commits)
      Promisify action creator return type for WP data dispatch (#52530)
      [RNMobile] Add WP hook for registering non-core blocks (#52791)
      removes check for active preview device type to enable the fixed toolbar preference (#52770)
      Enforce checks against redeclaration for functions and classes (#52696)
      update appearance tools, (#52785)
      Behaviors: Extend Global Styles API to read/write behaviors config. (#52370)
      HeaderToolbar - Update inserterMethod meta data (#52735)
      add options for debugging php unit tests (#52778)
      Docs: Interactivity API > Getting Started Guide - minor adjustments (#52786)
      Footnotes: Use static closures when not using '' (#52781)
      Improve slug generation & matching in request utils (#52414)
      Open "docs" folder for the Interactivity API package and Getting Started Guide (#52462)
      Global Styles: Don't use named arguments for 'sprintf' (#52782)
      E2E utils - Update locator to hide the keyboard on iOS to pick the first element, on iPad two buttons are available and the second one makes the floating keyboard to show up (#52771)
      Patterns: Reinstate template parts mode spec (#52780)
      chore(release): publish
      Update changelog files
      Patterns: Fix empty general template parts category (#52747)
      Add id to pattern inserted notice to stop multiple notices stacking (#52746)
      Site Editor: Fix site link accessibility issues (#52744)
      ...
    westonruter committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    da2380a View commit details
    Browse the repository at this point in the history