WordPress.org

Making WordPress.org

Opened 8 days ago

Closed 8 days ago

#5111 closed defect (reported-upstream)

Large amounts of JavaScript on make network

Reported by: bradleyt Owned by:
Milestone: Priority: normal
Component: Make (Get Involved) / P2 Keywords: seo performance
Cc:

Description

On most (all?) pages on make.wordpress.org, there is a large amount of JavaScript loaded in the head of the document.

Some of these are required for the pages to function correctly, such as the JavaScript enqueued by the o2 library, and from standard files like jquery.js

However, there are a large number of files coming from https://make.wordpress.org/wp-includes/css/dist/. As an educated-guess, it looks like these pages are loading the entirety of the block-editor (Gutenberg), even though its not being used.

This is having a massive front-end impact on performance across these pages. Can these scripts be de-queued?

Change History (1)

#1 in reply to: ↑ description @dd32
8 days ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Replying to bradleyt:

However, there are a large number of files coming from https://make.wordpress.org/wp-includes/css/dist/. As an educated-guess, it looks like these pages are loading the entirety of the block-editor (Gutenberg), even though its not being used.

You've mentioned css/dist but I'm not seeing a significant amount of data being loaded from there, I'm assuming you're referring to the js/dist scripts instead.

It appears that they're being included due to the new WordPress.org Meetings Calendar, which is a Gutenberg block, and it's loading it's dependancies which includes React and a bunch of other dependancies.
In general, the next plugin/theme JS include following the core components will be the culprit for what is causing them to be loaded.

Hopefully there's a way to slim down / combine / something these files otherwise that's going to be a huge impact upon sites in the future.
I've filed a bug against the plugin, so lets resolve this there instead: https://github.com/Automattic/meeting-calendar/issues/95

Note: See TracTickets for help on using tickets.