Skip to content

Commit

Permalink
feat(perfmatters): improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Mar 1, 2023
1 parent 6904356 commit 267306e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/plugins/class-perfmatters.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static function scripts_to_delay() {
*/
private static function unused_css_excluded_stylesheets() {
return [
'donateStreamlined.css',
'plugins/newspack-blocks', // Newspack Blocks.
'/themes/newspack-', // Any Newspack theme stylesheet.
'wp-includes',
];
Expand Down Expand Up @@ -139,6 +139,7 @@ public static function set_defaults( $options = [] ) {
$defer_js_exclusions = [
'wp-includes',
'jwplayer.com', // This platform won't work if the JS is deferred.
'adsrvr.org', // This platform won't work if the JS is deferred.
];
$options['assets']['defer_js'] = true;
if ( isset( $options['assets']['js_exclusions'] ) && is_array( $options['assets']['js_exclusions'] ) ) {
Expand Down

0 comments on commit 267306e

Please sign in to comment.