Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

SEO: Build in the option of deferring third-party javascript where possible as a default. #65795

Open arinoch opened 2 years ago

arinoch commented 2 years ago

What

I would like sites hosted on wordpress.com to be set up to automatically defer third-party javascript as a built-in feature, rather than requiring a plugin (example).

Why

We advertise being good for SEO, and site speed plays a part in that. We provide documentation for what users can do to optimize their content, but there are optimizations we can make to assist, as determined in 36009369-hc.

How

We might consider building this as an optional setting in Jetpack, or in Jetpack Boost, and making it available to those of our users who want to get more out of their site performance. Restricting it to Jetpack Boost means it will only apply to javascript we don't control--the javascript we do control should be deferred already.

Greatdane commented 2 years ago

Leaving open, but technically, I think we have this ability on the default Page Optimize plugin which is installed on all Atomic sites; https://wordpress.com/support/page-optimize/#exclusion-list