wordpress-develop/src/wp-admin/js
Weston Ruter 78b73c8906 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@34563 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-25 21:01:46 +00:00
..
accordion.js Menu customizer: More clearly separate search results from available items. 2015-07-29 23:39:54 +00:00
bookmarklet.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:11:30 +00:00
bookmarklet.min.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:11:30 +00:00
color-picker.js Color Picker: Allow to override mode and width values for Iris via wpColorPicker options. 2014-11-13 12:33:27 +00:00
comment.js Comment status box: Move focus back to Edit link when changing the date. 2015-07-26 02:25:43 +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:40:34 +00:00
custom-background.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:39:28 +00:00
custom-header.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:39:28 +00:00
customize-controls.js Customizer: Fix usage of jQuery.contains() allowing active state changes to again animate control visibility. 2015-09-25 19:54:00 +00:00
customize-nav-menus.js Customizer: Prevent JS error during init when nav_menus panel is removed by plugin. 2015-08-26 06:42:16 +00:00
customize-widgets.js Customizer: Defer embedding widget controls to improve DOM performance and initial load time. 2015-09-25 21:01:46 +00:00
dashboard.js Fix dragging to the bottom of the screen on the Dashboard. 2015-05-14 23:49:44 +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:20:11 +00:00
editor-expand.js Emoji: rename the exclude class to wp-exclude-emoji. 2015-05-04 00:04:15 +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:35:58 +00:00
farbtastic.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
gallery.js Fix JSHint errors in gallery.js. 2013-11-19 11:09:01 +00:00
image-edit.js Spinners: Toggle a class instead of show/hide. 2015-04-03 04:51:18 +00:00
inline-edit-post.js Quick Edit: fix the Tags auto-suggest tooltip visibility. 2015-09-11 23:33:43 +00:00
inline-edit-tax.js Bulk/quick edit: Set the correct colspan. 2015-07-01 01:05:29 +00:00
iris.min.js Update the Iris color picker to version 1.0.7. 2014-11-30 11:44:00 +00:00
language-chooser.js Language chooser imporvements. 2014-08-04 20:46:42 +00:00
link.js Fix JSHint errors in 5 files. 2013-11-15 05:15:06 +00:00
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:06:17 +00:00
media-gallery.js Fix JSHint errors in three files. 2013-11-15 23:18:18 +00:00
media-upload.js The "old iframe media modal" has some pretty busted styles. Although this is a "deprecated" feature, clean up some of the broken styles. 2014-06-25 17:38:28 +00:00
media.js Spinners: Toggle a class instead of show/hide. 2015-04-03 04:51:18 +00:00
nav-menu.js Nav menus: Adjust redundant titles in accessibility helpers. 2015-08-03 21:03:59 +00:00
password-strength-meter.js Fix JSHint errors in 3 files. 2013-11-15 05:11:10 +00:00
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:49:41 +00:00
post.js Turn off autocomplete for the new-post-slug field. 2015-09-14 02:02:58 +00:00
postbox.js Make post meta box toggles accessible. 2015-08-26 15:22:57 +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:07:36 +00:00
revisions.js Revisions: Fix initial state of compareTwoMode. 2014-12-12 09:53:10 +00:00
set-post-thumbnail.js Revert a part of [32673] that caused a fatal error with SCRIPT_DEBUG disabled. 2015-06-01 04:13:17 +00:00
svg-painter.js Final SVG painter fixes. 2013-12-05 22:00:17 +00:00
tags-box.js When saving post, ensure that non-hierarchical taxonomy input is defined before attempting to parse it. 2015-03-26 01:22:01 +00:00
tags.js Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM. 2015-03-12 12:51:06 +00:00
theme.js Bump H3 headings to H2 on Themes screen for better accessibility. 2015-08-31 03:50:05 +00:00
updates.js Correct typo in JSDoc for wp.updates.decrementCount 2015-08-18 21:46:19 +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:53:04 +00:00
user-suggest.js Autocomplete for the new site admin email. Better than trying to remember which email address you used. 2014-01-27 23:09:08 +00:00
widgets.js Ensure that widget carets close when dragging an expanded widget. 2015-09-15 03:09:35 +00:00
word-count.js Editor: word count: better names for types. 2015-07-27 11:18:55 +00:00
wp-fullscreen-stub.js Editor: 2015-06-01 17:37:14 +00:00
xfn.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:57:11 +00:00