0

I have 1 question. Is there any idea how to hide all the unnecessary scripts and stylesheets on WordPress front page only(as screentshot provided? I am doing this because of to maintain my home page clean. To reduce loading requests.

I want it NOT SHOWING on the HTML source on Front_Page only.

*the unnecessary stylesheets and scripts are not doing anything on my home page. So, it's okay to hide.

Is there any way to do this?

enter image description here

1
  • Hiding is not the term, use wp_dequeue_style and wp_dequeue_script and ! is_front_page or ! is_home in a function. If done well it stops loading these styles and scripts only on the front page. – Charles Dec 19 '20 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.