Viewing 5 reply threads
You must be logged in to reply to this topic.
Hi, I’ve read the excellent article: https://codeless.co/how-i-increased-more-than-70-the-speed-of-my-website/
I am wondering if deactivating of scripts shown in the “Eliminate render-blocking JavaScript and CSS” section can be done via the Tower Child Theme, and if it’s possible, how can it be done?
Much thanks in advance/
Hello,
Yes can be done by using the wp_dequeue_script and wp_dequeue_style functions into functions.php file for deactivating certain files.
/* Disable Js files */
/* Disable Styles */
Regards!
Hi Ruco,
Thanks ever so much for this. I’m not absolutely sure how the code would look unfortunately – and I do apologise for this.
Is there any possibility to show me based on the code in the link above so i might understand better?
Much thanks Ruco.
Hello,
< ?php wp_dequeue_script( $handle ); ?>
wp_enqueue_style( ‘jquery.easy-pie-chart’ ); for example if you want to remove this styling add this function into functions.php of child-theme:
wp_dequeue_style( ‘jquery.easy-pie-chart’ )
and if you want to remove a javascript library
wp_enqueue_script(‘jquery.infinitescroll’);
add this function into functions.php of child theme:
wp_dequeue_script(‘jquery.infinitescroll’);
In case you want to receive further support you have to renew your support license.
Let us know.
Regards!
Thanks Ruco, ever so much. I’ll renew support by next week. Thank you, and I hope this helps others too.
You must be logged in to reply to this topic.