WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#23910 closed enhancement (wontfix)

Ajaxify All Admin Dashboard Widgets

Reported by: alex-ye Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5.1
Component: Administration Keywords:
Focuses: Cc:
PR Number:

Description

Hi, It seems that the back-end dashboard page needs some updating, This ticket about some widgets needs to be done using AJAX

WP Right Now
WP Network Right Now
WP Quick Press
WP Recent Drafts
WP Recent Comments
... etc

When the widget is hidden from the dashboard by "Screen Options" the widget content shouldn't be fetched only if the user show the widget from the "Scrren Options" .

This is possible using AJAX , and It will increase the performance !

Change History (3)

#1 @alex-ye
7 years ago

  • Type changed from defect (bug) to enhancement

#2 @nacin
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

There really isn't a reason to move to XHR for these widgets.

The other widgets all require external HTTP requests to RSS feeds, which are in turn cached (both the feeds, and the HTML output of the widget).

We found back in 3.2 (when the HTML output caching was added) that having widgets load via XHR made the dashboard appear slower to load. It feels more instant when things just appear suddenly.

In the case of the cited widgets, these all require some DB queries, but that's about it. We're not dealing with the time delay of an HTTP request.

#3 @SergeyBiryukov
7 years ago

  • Keywords needs-patch removed
  • Summary changed from Ajaxfiy All Admin Dashboard Widgets to Ajaxify All Admin Dashboard Widgets
Note: See TracTickets for help on using tickets.