WordPress/wp-admin/js
Weston Ruter 208330f2dc Customizer: Defer embedding widget controls to improve DOM performance and initial load time.
The Menu Customizer feature includes a performance technique whereby the controls for nav menu items are only embedded into the DOM once the containing menu section is expanded. This commit implements the same DOM deferral for widgets but goes a step further than just embedding the controls once the widget area's Customizer section is expanded: it also defers the embedding of the widget control's form until the widget is expanded, at which point the `widget-added` event also fires to allow any additional widget initialization to be done. The deferred DOM embedding can speed up initial load time by 10x or more. This DOM deferral also yields a reduction in overall memory usage in the browser process.

Includes changes to `wp_widget_control()` to facilitate separating out the widget form from the surrounding accordion container; also includes unit tests for this previously-untested function. Also included are initial QUnit tests (finally) for widgets in the Customizer.

Fixes #33901.

Built from https://develop.svn.wordpress.org/trunk@34563


git-svn-id: http://core.svn.wordpress.org/trunk@34527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-25 21:02:27 +00:00
..
accordion.js Menu customizer: More clearly separate search results from available items. 2015-07-29 23:40:25 +00:00
accordion.min.js Menu customizer: More clearly separate search results from available items. 2015-07-29 23:40:25 +00:00
bookmarklet.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:12:26 +00:00
bookmarklet.min.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:12:26 +00:00
color-picker.js
color-picker.min.js
comment.js Comment status box: Move focus back to Edit link when changing the date. 2015-07-26 02:26:24 +00:00
comment.min.js Comment status box: Move focus back to Edit link when changing the date. 2015-07-26 02:26:24 +00:00
common.js Admin: when toggling select/deselect "all" via JS - :visible needs to be bound to not toggle disabled inputs. 2015-09-19 16:41:24 +00:00
common.min.js Admin: when toggling select/deselect "all" via JS - :visible needs to be bound to not toggle disabled inputs. 2015-09-19 16:41:24 +00:00
custom-background.js
custom-background.min.js
custom-header.js
customize-controls.js Customizer: Fix usage of jQuery.contains() allowing active state changes to again animate control visibility. 2015-09-25 19:54:50 +00:00
customize-controls.min.js Customizer: Fix usage of jQuery.contains() allowing active state changes to again animate control visibility. 2015-09-25 19:54:50 +00:00
customize-nav-menus.js Customizer: Prevent JS error during init when nav_menus panel is removed by plugin. 2015-08-26 06:43:22 +00:00
customize-nav-menus.min.js Customizer: Prevent JS error during init when nav_menus panel is removed by plugin. 2015-08-26 06:43:22 +00:00
customize-widgets.js Customizer: Defer embedding widget controls to improve DOM performance and initial load time. 2015-09-25 21:02:27 +00:00
customize-widgets.min.js Customizer: Defer embedding widget controls to improve DOM performance and initial load time. 2015-09-25 21:02:27 +00:00
dashboard.js Fix dragging to the bottom of the screen on the Dashboard. 2015-05-14 23:50:28 +00:00
dashboard.min.js Fix dragging to the bottom of the screen on the Dashboard. 2015-05-14 23:50:28 +00:00
edit-comments.js Comments List Table: after [34179], scope the <th>s and <td>s as direct descendants of their parent row. 2015-09-25 02:21:26 +00:00
edit-comments.min.js Comments List Table: after [34179], scope the <th>s and <td>s as direct descendants of their parent row. 2015-09-25 02:21:26 +00:00
editor-expand.js
editor-expand.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
editor.js Fix creating of extra <br /> tags in both PHP and JS variants of wpautop(). Add PHP tests to catch similar problems in the future. 2015-08-17 17:36:24 +00:00
editor.min.js Fix creating of extra <br /> tags in both PHP and JS variants of wpautop(). Add PHP tests to catch similar problems in the future. 2015-08-17 17:36:24 +00:00
farbtastic.js
gallery.js
gallery.min.js
image-edit.js
image-edit.min.js
inline-edit-post.js Quick Edit: fix the Tags auto-suggest tooltip visibility. 2015-09-11 23:34:25 +00:00
inline-edit-post.min.js Quick Edit: fix the Tags auto-suggest tooltip visibility. 2015-09-11 23:34:25 +00:00
inline-edit-tax.js Bulk/quick edit: Set the correct colspan. 2015-07-01 01:06:25 +00:00
inline-edit-tax.min.js Bulk/quick edit: Set the correct colspan. 2015-07-01 01:06:25 +00:00
iris.min.js
language-chooser.js
language-chooser.min.js
link.js
link.min.js
list-table.js List Tables: add JS code to dynamically toggle the disabled attribute of the Bulk Actions dropdown and Apply button. 2015-09-24 01:07:24 +00:00
list-table.min.js List Tables: add JS code to dynamically toggle the disabled attribute of the Bulk Actions dropdown and Apply button. 2015-09-24 01:07:24 +00:00
media-gallery.js
media-gallery.min.js
media-upload.js
media-upload.min.js
media.js
media.min.js
nav-menu.js Nav menus: Adjust redundant titles in accessibility helpers. 2015-08-04 04:53:44 +00:00
nav-menu.min.js Nav menus: Adjust redundant titles in accessibility helpers. 2015-08-04 04:53:44 +00:00
password-strength-meter.js
password-strength-meter.min.js
plugin-install.js Plugins list table: Make selector for Details links more specific to prevent the Description header from being announced as "clickable". 2015-07-28 14:50:25 +00:00
plugin-install.min.js Plugins list table: Make selector for Details links more specific to prevent the Description header from being announced as "clickable". 2015-07-28 14:50:25 +00:00
post.js Turn off autocomplete for the new-post-slug field. 2015-09-14 02:03:25 +00:00
post.min.js Turn off autocomplete for the new-post-slug field. 2015-09-14 02:03:25 +00:00
postbox.js Make post meta box toggles accessible. 2015-08-26 15:23:24 +00:00
postbox.min.js Make post meta box toggles accessible. 2015-08-26 15:23:24 +00:00
press-this.js Editor, Press This: force a page reload when the user publishes a post and then clicks the back button. 2015-08-31 23:08:22 +00:00
press-this.min.js Editor, Press This: force a page reload when the user publishes a post and then clicks the back button. 2015-08-31 23:08:22 +00:00
revisions.js
revisions.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
set-post-thumbnail.js Revert a part of [32673] that caused a fatal error with SCRIPT_DEBUG disabled. 2015-06-01 04:14:25 +00:00
set-post-thumbnail.min.js Revert a part of [32673] that caused a fatal error with SCRIPT_DEBUG disabled. 2015-06-01 04:14:25 +00:00
svg-painter.js
svg-painter.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
tags-box.js
tags-box.min.js
tags.js
tags.min.js
theme.js Bump H3 headings to H2 on Themes screen for better accessibility. 2015-08-31 03:51:21 +00:00
theme.min.js Bump H3 headings to H2 on Themes screen for better accessibility. 2015-08-31 03:51:21 +00:00
updates.js Correct typo in JSDoc for wp.updates.decrementCount 2015-08-18 21:47:25 +00:00
updates.min.js Updates: When an update fails (and it's not during the credential form) allow further updates to continue, with the assumption that the error only affects a single plugin. 2015-06-15 04:28:25 +00:00
user-profile.js Profile: when clicking "Generate Password", toggling visibility, then canceling, ensure that the UI resets properly for when the "Generate Password" button is clicked again. 2015-09-25 13:54:24 +00:00
user-profile.min.js Profile: when clicking "Generate Password", toggling visibility, then canceling, ensure that the UI resets properly for when the "Generate Password" button is clicked again. 2015-09-25 13:54:24 +00:00
user-suggest.js
user-suggest.min.js
widgets.js Ensure that widget carets close when dragging an expanded widget. 2015-09-15 03:10:24 +00:00
widgets.min.js Ensure that widget carets close when dragging an expanded widget. 2015-09-15 03:10:24 +00:00
word-count.js Editor: word count: better names for types. 2015-07-27 11:19:26 +00:00
word-count.min.js Editor: word count: better names for types. 2015-07-27 11:19:26 +00:00
wp-fullscreen-stub.js Editor: 2015-06-01 17:38:29 +00:00
wp-fullscreen-stub.min.js Editor: 2015-06-01 17:38:29 +00:00
xfn.js
xfn.min.js