Opened 7 years ago
Closed 10 days ago
#42915 closed enhancement (wontfix)
Don't load admin dashboard widgets if they're not shown
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | dev-feedback 2nd-opinion |
Focuses: | administration, performance | Cc: |
Description
I'm not sure how doable this is given that #23910 was closed, but some plugins load slow admin dashboard widgets that use HTTP API requests or else involve heavy db lookups and processing. (Yes, these plugins should be designed better.)
Since this is the admin dashboard and not some other component that is heavily modified and reconfigured such as the post page and since #23910 was closed, would it be possible to require a page reload when an admin component is enabled (so that the page can be re-requested while calling the widget routine) instead of preloading all widgets and then simply hiding the unshown dashboard elements?
Or perhaps #23910 could be revisited with consideration given to non-stock admin dashboard widgets that are not as "no big deal" as the ones that WP ships with out of the box.
Thanks @ComputerGuru for the ticket and sorry for the long delay.
As far as I am concerned, Core could enforce a different paradigm here but it's more likely that plugins should do a better job at being lighter-weight and loading actual information via Ajax.
I'd like to further encourage Core folks to chime in with insights and opinions here in order to reach consensus.