[wp-trac] [WordPress Trac] #29155: Widgets: is_active_widget returns true even when the widget is not displayed on specific page

WordPress Trac noreply at wordpress.org
Tue Nov 23 15:55:22 UTC 2021


#29155: Widgets: is_active_widget returns true even when the widget is not
displayed on specific page
-------------------------+---------------------
 Reporter:  jeherve      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  Widgets      |     Version:  2.3
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+---------------------

Comment (by titsmaker):

 Just ran across an issue with WooCommerce widget's CSS loading on every
 page. Some function to check if widget is active on the current page would
 help a lot to load CSS conditionally thus improving WordPress performance.
 There are some solutions now but they are not easy enough to implement.
 Maybe it would make sense to add a performance focus to this ticket?

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


More information about the wp-trac mailing list