Legacy widgets: Widgets load all the scripts/styles of the theme repetitively. #41683
Labels
[Block] Legacy Widget
Affects the Legacy Widget Block - used for displaying Classic Widgets
Needs Testing
Needs further testing to be confirmed.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
Description
After adding more than two or two legacy Widget blocks ( Select
Meta
) to the Footer sidebar and save changes and refresh it. scripts/styles of the themes loading repetitively and requests of the sources are increase. Please see the attachment for a better understanding.Step-by-step reproduction instructions
Meta
) to the Footer sidebar.Meta
) to the Footer sidebar.Screenshots, screen recording, code snippet
When I use a single legacy widget.
When I use two legacy widgets.
Environment info
wp-core
version: 6.0
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /blog/%year%/%monthnum%/%day%/%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true
wp-paths-sizes
wordpress_path: /var/www/html/wordpress/project/wp-developer
wordpress_size: 47.20 MB (49493531 bytes)
uploads_path: /var/www/html/wordpress/project/wp-developer/wp-content/uploads
uploads_size: 8.38 MB (8790181 bytes)
themes_path: /var/www/html/wordpress/project/wp-developer/wp-content/themes
themes_size: 36.42 MB (38188555 bytes)
plugins_path: /var/www/html/wordpress/project/wp-developer/wp-content/plugins
plugins_size: 147.84 MB (155021671 bytes)
database_size: 3.08 MB (3227648 bytes)
total_size: 242.92 MB (254721586 bytes)
wp-active-theme
name: Twenty Twenty-One (twentytwentyone)
version: 1.6
author: the WordPress team
author_website: https://wordpress.org/
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-formats, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, custom-background, editor-color-palette, editor-gradient-presets, responsive-embeds, custom-line-height, experimental-link-color, custom-spacing, custom-units, widgets
theme_path: /var/www/html/wordpress/project/wp-developer/wp-content/themes/twentytwentyone
auto_update: Disabled
wp-themes-inactive (13)
Twenty Eleven: version: 4.1, author: the WordPress team, Auto-updates disabled
Twenty Fifteen: version: 3.2, author: the WordPress team, Auto-updates disabled
Twenty Fourteen: version: 3.4, author: the WordPress team, Auto-updates disabled
Twenty Nineteen: version: 2.3, author: the WordPress team, Auto-updates disabled
Twenty Seventeen: version: 3.0, author: the WordPress team, Auto-updates disabled
Twenty Sixteen: version: 2.7, author: the WordPress team, Auto-updates disabled
Twenty Ten: version: 3.7, author: the WordPress team, Auto-updates disabled
Twenty Thirteen: version: 3.6, author: the WordPress team, Auto-updates disabled
Twenty Twelve: version: 3.7, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 2.0, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.2, author: the WordPress team, Auto-updates disabled
wp-plugins-inactive (1)
Akismet Anti-Spam: version: 4.2.4, author: Automattic, Auto-updates disabled
wp-media
image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: File uploads is turned off
post_max_size: 200M
upload_max_filesize: 200M
max_effective_size: 200 MB
max_file_uploads: 120
gd_version: 2.3.0
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.50
wp-server
server_architecture: Linux 5.13.0-48-generic x86_64
httpd_software: Apache/2.4.41 (Ubuntu)
php_version: 7.4.29 64bit
php_sapi: apache2handler
max_input_variables: 3000
time_limit: 180
memory_limit: 256M
max_input_time: 120
upload_max_filesize: 200M
php_post_max_size: 200M
curl_version: 7.68.0 OpenSSL/1.1.1f
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false
wp-database
extension: mysqli
server_version: 8.0.29-0ubuntu0.20.04.3
client_version: mysqlnd 7.4.29
max_allowed_packet: 67108864
max_connections: 151
wp-constants
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/html/wordpress/project/wp-developer/wp-content
WP_PLUGIN_DIR: /var/www/html/wordpress/project/wp-developer/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
DB_CHARSET: utf8
DB_COLLATE: undefined
wp-filesystem
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: