From 3ef63859355cdc09241d0c4ab96f7ae5c9ad1aaa Mon Sep 17 00:00:00 2001 From: Aarish <118203269+ImprobableGenius@users.noreply.github.com> Date: Wed, 4 Mar 2026 08:51:55 -0600 Subject: [PATCH] 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 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. --- lib/hooks.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/hooks.php b/lib/hooks.php index 8c93126..511b186 100644 --- a/lib/hooks.php +++ b/lib/hooks.php @@ -155,7 +155,6 @@ function init() { 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_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_generator' ); // WordPress version. remove_action( 'wp_head', 'rsd_link' ); // RSD link.