WordPress/wp-includes/js
joedolson 9b6710c43c Media: Remove infinite scroll from media library and modal.
Replace infinitely autoloading behavior on scroll with a user-controlled load more button. Fix a long standing accessibility issue in the media library. Infinite scroll poses a wide range of problems for accessibility, usability, and performance.

This change modifies the library to load 40 items in the initial view, with a load more button to load the next 40 items and a button to move focus from the load more region to the first of the most recently added items.

The text for communicating the jump target was broadly discussed, agreeing that the text incorporated here would most concisely and clearly convey the purpose of the button, and any further detail is learnable from use.
 
Props afercia, adamsilverstein, joedolson, audrasjb, francina 
Fixes #50105. See #40330. 
Built from https://develop.svn.wordpress.org/trunk@50829


git-svn-id: http://core.svn.wordpress.org/trunk@50438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-07 23:19:03 +00:00
..
codemirror Ensure `svn:eol-style` is consistently set for all files. 2019-10-25 16:38:07 +00:00
crop
dist Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
imgareaselect External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-09 16:45:06 +00:00
jcrop
jquery Build/Test Tools: Update some dependencies. 2021-04-06 14:31:21 +00:00
mediaelement Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
plupload Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
swfupload
thickbox External Libraries: Correct `click` event handling in the Thickbox library. 2021-02-23 10:54:06 +00:00
tinymce Build/Test Tools: Update several dependencies. 2021-04-20 20:02:47 +00:00
admin-bar.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
admin-bar.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
api-request.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
api-request.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
autosave.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
autosave.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
backbone.js External Libraries: Update Backbone.js to 1.4.0. 2019-09-17 17:19:54 +00:00
backbone.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
clipboard.js External Libraries: Update Clipboard.js library to version `2.0.8`. 2021-03-18 15:54:18 +00:00
clipboard.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
comment-reply.js Comments: Hide the link to the initial parent comment in the reply heading when replying to another comment. 2020-10-18 06:41:04 +00:00
comment-reply.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
customize-base.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
customize-base.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
customize-loader.js Docs: Remove extra spaces from `@param` tags. 2020-06-20 12:58:10 +00:00
customize-loader.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-models.js Docs: Replace "AJAX" with "Ajax" in DocBlocks and comments, per the spelling glossary. 2020-06-25 12:43:07 +00:00
customize-models.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-preview-nav-menus.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
customize-preview-nav-menus.min.js Build/Test Tools: Update some dependencies. 2021-04-06 14:31:21 +00:00
customize-preview-widgets.js Docs: Remove extra spaces from `@param` tags. 2020-06-20 12:58:10 +00:00
customize-preview-widgets.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-preview.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
customize-preview.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-selective-refresh.js Docs: Correct alignment for some parameters in JS documentation. 2020-07-28 00:07:03 +00:00
customize-selective-refresh.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
customize-views.js
customize-views.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
heartbeat.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
heartbeat.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
hoverIntent.js External Libraries: Update jQuery hoverIntent to version 1.10.1. 2021-03-10 15:25:20 +00:00
hoverIntent.min.js External Libraries: Update jQuery hoverIntent to version 1.10.1. 2021-03-10 15:25:20 +00:00
hoverintent-js.min.js Fix the admin toolbar js when jQuery is not present and replace the jQuery based hoverIntent.js with a native implementation. Introduces the "hoverintent" (no dependencies) package. 2019-12-10 01:03:02 +00:00
imagesloaded.min.js External Libraries: Update Masonry to 4.2.2 and imagesLoaded to 4.1.4. 2020-06-13 18:53:27 +00:00
json2.js
json2.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
masonry.min.js External Libraries: Update Masonry to 4.2.2 and imagesLoaded to 4.1.4. 2020-06-13 18:53:27 +00:00
mce-view.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
mce-view.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-audiovideo.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-audiovideo.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-editor.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
media-editor.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
media-grid.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
media-grid.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
media-models.js Media: Remove infinite scroll from media library and modal. 2021-05-07 23:19:03 +00:00
media-models.min.js Media: Remove infinite scroll from media library and modal. 2021-05-07 23:19:03 +00:00
media-views.js Media: Remove infinite scroll from media library and modal. 2021-05-07 23:19:03 +00:00
media-views.min.js Media: Remove infinite scroll from media library and modal. 2021-05-07 23:19:03 +00:00
quicktags.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
quicktags.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
shortcode.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
shortcode.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
twemoji.js Emoji: Update the Twemoji library to version 13.0.2. 2021-03-18 19:20:19 +00:00
twemoji.min.js Emoji: Update the Twemoji library to version 13.0.2. 2021-03-18 19:20:19 +00:00
underscore.js External Libraries: Update Underscore to version 1.13.1. 2021-04-21 17:55:19 +00:00
underscore.min.js External Libraries: Update Underscore to version 1.13.1. 2021-04-21 17:55:19 +00:00
utils.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
utils.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-ajax-response.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-ajax-response.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-api.js REST API: JS Client - improve collection route construction for empty parents. 2020-10-29 18:32:05 +00:00
wp-api.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-auth-check.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-auth-check.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-backbone.js Docs: Remove extra spaces from `@param` tags. 2020-06-20 12:58:10 +00:00
wp-backbone.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-custom-header.js Customize: Set `playsinline` attribute for custom header videos. 2021-04-10 12:40:05 +00:00
wp-custom-header.min.js Customize: Set `playsinline` attribute for custom header videos. 2021-04-10 12:40:05 +00:00
wp-embed-template.js Embeds: Only catch clicks from the primary mouse button in the click handler, without any modifier keys. 2020-10-19 13:36:08 +00:00
wp-embed-template.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
wp-embed.js Embeds: After [43593], move the new check to a separate line to avoid `test_js_no_ampersands_in_compiled` failure caused by UglifyJS task. 2018-08-30 12:40:26 +00:00
wp-embed.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-emoji-loader.js Emoji: Upgrade Twemoji to version 13.0.0. 2020-06-15 18:04:26 +00:00
wp-emoji-loader.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-emoji-release.min.js Emoji: Update the Twemoji library to version 13.0.2. 2021-03-18 19:20:19 +00:00
wp-emoji.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-emoji.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-lists.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
wp-lists.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-pointer.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-16 20:25:03 +00:00
wp-pointer.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-16 20:25:03 +00:00
wp-sanitize.js Update wp.a11y.speak() to sanitize HTML before display. 2019-09-04 17:13:21 +00:00
wp-sanitize.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-util.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
wp-util.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wpdialog.js
wpdialog.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wplink.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wplink.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-26 15:47:21 +00:00
zxcvbn-async.js
zxcvbn-async.min.js Build/Test Tools: Update NPM dependencies. 2021-02-23 16:45:19 +00:00
zxcvbn.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00