Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | Disable and Remove Google Fonts |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- changelog.txt +4 -0
- disable-remove-google-fonts.php +10 -1
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
= 1.4.1 =
|
2 |
|
3 |
* Change priority on wp_enqueue_scripts as some themes use 10000.
|
1 |
+
= 1.4.2 =
|
2 |
+
|
3 |
+
* Remove the preconnect hint to fonts.gstatic.com in the Divi theme.
|
4 |
+
|
5 |
= 1.4.1 =
|
6 |
|
7 |
* Change priority on wp_enqueue_scripts as some themes use 10000.
|
disable-remove-google-fonts.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
|
6 |
* Author: Fonts Plugin
|
7 |
* Author URI: https://fontsplugin.com
|
8 |
-
* Version: 1.4.
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
11 |
*
|
@@ -74,6 +74,7 @@ function drgf_dequeueu_fonts() {
|
|
74 |
|
75 |
remove_action('wp_head', 'appointment_load_google_font');
|
76 |
|
|
|
77 |
}
|
78 |
add_action( 'wp_enqueue_scripts', 'drgf_dequeueu_fonts', PHP_INT_MAX );
|
79 |
add_action( 'wp_print_styles', 'drgf_dequeueu_fonts', PHP_INT_MAX );
|
@@ -151,3 +152,11 @@ function drgf_enfold_customization_switch_fonts() {
|
|
151 |
$avia->style->print_extra_output = false;
|
152 |
}
|
153 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
* Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
|
6 |
* Author: Fonts Plugin
|
7 |
* Author URI: https://fontsplugin.com
|
8 |
+
* Version: 1.4.2
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
11 |
*
|
74 |
|
75 |
remove_action('wp_head', 'appointment_load_google_font');
|
76 |
|
77 |
+
|
78 |
}
|
79 |
add_action( 'wp_enqueue_scripts', 'drgf_dequeueu_fonts', PHP_INT_MAX );
|
80 |
add_action( 'wp_print_styles', 'drgf_dequeueu_fonts', PHP_INT_MAX );
|
152 |
$avia->style->print_extra_output = false;
|
153 |
}
|
154 |
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Remove the preconnect hint to fonts.gstatic.com.
|
158 |
+
*/
|
159 |
+
add_action( 'init', 'drgf_remove_divi_preconnect' );
|
160 |
+
function drgf_remove_divi_preconnect() {
|
161 |
+
remove_action( 'wp_enqueue_scripts', 'et_builder_preconnect_google_fonts', 9 );
|
162 |
+
}
|