Remove wp_print_styles action from wp_head (#5)
Removed the remove_action hook for wp_print_styles in lib/hooks.php. Previously, this hook was preventing stylesheets from loading in the <head> and forcing them to load in the footer. This caused a significant Flash of Unstyled Content (FOUC) where the raw HTML would render before styles were applied.
This commit is contained in:
@@ -155,7 +155,6 @@ function init() {
|
|||||||
wp_dequeue_style( 'core-block-styles' ); // Core block styles.
|
wp_dequeue_style( 'core-block-styles' ); // Core block styles.
|
||||||
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles', 1 );
|
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles', 1 );
|
||||||
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles', 1 );
|
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles', 1 );
|
||||||
remove_action( 'wp_head', 'wp_print_styles', 8 );
|
|
||||||
remove_action( 'wp_head', 'wp_print_head_scripts', 9 );
|
remove_action( 'wp_head', 'wp_print_head_scripts', 9 );
|
||||||
remove_action( 'wp_head', 'wp_generator' ); // WordPress version.
|
remove_action( 'wp_head', 'wp_generator' ); // WordPress version.
|
||||||
remove_action( 'wp_head', 'rsd_link' ); // RSD link.
|
remove_action( 'wp_head', 'rsd_link' ); // RSD link.
|
||||||
|
|||||||
Reference in New Issue
Block a user