[wp-trac] [WordPress Trac] #55344: Resources for hidden widgets are loaded on WP dashboard

WordPress Trac noreply at wordpress.org
Thu Apr 20 11:26:29 UTC 2023


#55344: Resources for hidden widgets are loaded on WP dashboard
----------------------------+--------------------------------------
 Reporter:  josklever       |       Owner:  adamsilverstein
     Type:  defect (bug)    |      Status:  accepted
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript, performance
----------------------------+--------------------------------------

Comment (by ramon fincken):

 Now this is interesting.

 I agree with you Jos that is is at the very least "strange" that those
 items are loaded.

 However on the other hand it is for many many years ( which is not a good
 reason however to NOT take up this ticket ) the case that dashboard
 widgets are instantly shown/hidden with the screen options.

 Applying what you mention would either ( in my backender-opinion )
 require:
 A) fully reload the dashboard page
 or
 B) use AJAX/json to load widgets.

 In my experience loading javascript that was not present before trigging
 XHR responses is very very tricky. So that would ( to assure 100% working
 guarantee of all widgets out there ) only leave option A, am I correct on
 this ?

 That means that you can only instant hide a currently shown widget just
 like it is now, but you _cannot_ instantly show a previously hidden widget
 as you will need a full page reload.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55344#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list