• Resolved digisavvy

    (@digisavvy)


    Is there a way to disable lottie (or any feature in editor plus) that loads javascript? I’m not using lottie but it registers as a script that my site is using. Ideally, we should only be loading files/assets for things that are in use on any given page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Munir Kamal

    (@munirkamal)

    Hey, I’ve forwarded your issue to the dev team, meanwhile, you can use the following snippet to dequeue editorplus Lottie script from your site.

    add_action('wp_print_scripts', function() {
        
        if (!is_admin()) {
            wp_dequeue_script('editorplus-lottie-player-script');    
        }
        
    }, 10);

    Let me know how it goes.

    Thread Starter digisavvy

    (@digisavvy)

    Perfect, thank you for sharing that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Lottie’ is closed to new replies.