• Hello,

    why are you putting css and js to the frontend pages? Page then needs to load more requests, the pagespeedscore is lowered and I think it has no point of having it loaded.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have exactly the same question! I can understand css files being required in the admin, but why are the following files loaded in frontend web pages:

    wp-security-hardening/modules/inc/fa/css/font-awesome.min.css
    wp-security-hardening/modules/inc/assets/css/tw-bs4.css
    wp-security-hardening/modules/css/front.css

    Total size: 228KB!

    And is wp-security-hardening/modules/js/front.js even required? My front.js file seems to serve no purpose, it contains:

    jQuery(document).ready( function($){
    	 
    	
    }) // global end

    I changed the css/js files loaded in wp-content\plugins\wp-security-hardening\modules\scripts.php and saved more than 1s from mobile LCP resulting in a mobile performance score of 100.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Putting css and js to frontend pages’ is closed to new replies.