From be998146b70748fedbab014d7507192c1dbea67a Mon Sep 17 00:00:00 2001 From: Marcus Quinn Date: Thu, 13 Mar 2025 22:48:49 +0000 Subject: [PATCH] Add minifiers --- wpa-superstar-plugin.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wpa-superstar-plugin.php b/wpa-superstar-plugin.php index 5a80650..09e79fa 100644 --- a/wpa-superstar-plugin.php +++ b/wpa-superstar-plugin.php @@ -74,4 +74,13 @@ function wpa_superstar_admin_assets() { ] ); } -add_action( 'admin_enqueue_scripts', 'wpa_superstar_admin_assets' ); \ No newline at end of file +add_action( 'admin_enqueue_scripts', 'wpa_superstar_admin_assets' ); + +function lazyLoad_assets() { + // Enqueue styles for lazy loading + wp_enqueue_style( + 'wpa-superstar-lazy-load', + plugins_url( 'public/css/wpa-superstar-lazy-load.css', __FILE__ ), + [], + WPA_SUPERSTAR_VERSION + ); \ No newline at end of file