Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Eliminating render-blocking JavaScript and CSS in Tower through a Child Theme

eliminating render-blocking JavaScript and CSSpagespeed
    • 6 years, 8 months ago MM
      Participant

      Expired

      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/

       

    • 6 years, 8 months ago Ruco
      Keymaster

      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!

    • 6 years, 8 months ago MM
      Participant

      Expired

      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.

    • 6 years, 8 months ago Ruco
      Keymaster

      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!

    • 6 years, 8 months ago MM
      Participant

      Expired

      Thanks Ruco, ever so much. I’ll renew support by next week. Thank you, and I hope this helps others too.

    • 6 years, 8 months ago Ruco
      Keymaster

      Best Regards!

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password