Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy widgets: Widgets load all the scripts/styles of the theme repetitively. #41683

Closed
thejaydip opened this issue Jun 13, 2022 · 3 comments
Closed
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.

Comments

@thejaydip
Copy link

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

  • Use Twenty Twenty-One theme
  • Go to Appearance > Widgets
  • Add a Legacy Widget block ( Select Meta ) to the Footer sidebar.
  • Again add a Legacy Widget block ( Select Meta ) to the Footer sidebar.
  • Save changes
  • Refresh

Screenshots, screen recording, code snippet

widgets

When I use a single legacy widget.

single-used

When I use two legacy widgets.

double-used

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

@annezazu annezazu added Needs Testing Needs further testing to be confirmed. [Block] Legacy Widget Affects the Legacy Widget Block - used for displaying Classic Widgets labels Jun 17, 2022
@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Aug 25, 2022
@mrfoxtalbot
Copy link

Thank you for reporting this, @thejaydip.

I have re-tested this and I am seeing a way smaller number or requests (8/32):

Screen Shot on 2022-09-19 at 17:54:27

I am going to close this as "cannot reproduce" but please feel to reopen it if necessary. Thanks again!

@mrfoxtalbot mrfoxtalbot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2022
@kelvin-xu
Copy link

I can confirm this is still an issue in WordPress core widget page. It is caused by legacy widgets even inactive legacy widgets.

@kelvin-xu
Copy link

Untitled.design.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

4 participants