mailchimp-for-wordpress icon indicating copy to clipboard operation
mailchimp-for-wordpress copied to clipboard

Request: Defer CSS and JS

Open arnelap opened this issue 4 years ago • 3 comments

Hi, you can improve the performance of the plugin by adding defer in the js and this css rule in the css files https://developers.google.com/web/updates/2020/08/nic85#content-visibility https://web.dev/content-visibility/

https://wordpress.org/support/topic/improve-perfomance-2/

arnelap avatar Dec 22 '20 07:12 arnelap

And some js are not minified It would also be good not to use jquery

Camilo517 avatar Jan 05 '21 10:01 Camilo517

Hello @Camilo517,

The plugin already doesn't use jQuery and all JavaScript files come with a minified version that is loaded if SCRIPT_DEBUG is not enabled. Can you point to the files which are not minified for you?

dannyvankooten avatar Jan 05 '21 11:01 dannyvankooten

Hello @dannyvankooten Right, my fault But you could add this to improve performance https://web.dev/content-visibility/

Camilo517 avatar Jan 10 '21 16:01 Camilo517