• Resolved tbauerdigital

    (@tbauerdigital)


    I love the simple yet powerful functionality that the Email Encoder plugin offers. I currently only use the “simple HTML character encoding” function on many websites. In this case, it is not necessary to load jQuery and the additional script/CSS from Email Encoder. From my point of view, it would be ideal if you could deactivate these scripts in the config. Would that be possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tbauerdigital

    (@tbauerdigital)

    Since there seems to be no solution here, I have added a small function to function.php. This allows you to avoid loading the two assets (script and CSS) and thus also jquery.js.

    Here is the script (insert in Theme > functions.php):

    // disable Email Encoder style/js
    function tba_disable_scripts_styles() {
    	wp_dequeue_style('eeb-css-frontend');
    	wp_dequeue_script('eeb-js-frontend');
    }
    add_action('wp_enqueue_scripts', 'tba_disable_scripts_styles', 100);
    
    

    Thanks for that useful script, tbauer – a very simple way to disable what should be configurable in the plugin admin.

    Plugin Author Ironikus

    (@ironikus)

    Hey @tbauerdigital – I’ve implemented additional logic to optimize the enqueue of our scripts and styles. It’s going to be available with version 2.2.0

    Thread Starter tbauerdigital

    (@tbauerdigital)

    @ironikus perfect, thanks a lot for this and your great work. Wish you a nice day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Better Performance: Remove Javascript / CSS if not needed’ is closed to new replies.