• Hi,

    I removed some Elementor’s widget based on this code (https://github.com/pojome/elementor/issues/536#issuecomment-347572684)

    add_action('elementor/widgets/widgets_registered', 'custom_unregister_elementor_widgets');
    
    function custom_unregister_elementor_widgets($obj){
    	$obj->unregister_widget_type('image'); // This hides the Image widget for example
    }

    Do we have any benifits from removing widgets (Just keep some common used widget)? Does Elementor load faster and JS/CSS file reduced?

    Thanks!

Viewing 1 replies (of 1 total)
  • I’m curious to know as well.

    I always thought it would be great if they provided a settings tab that allowed one to selectively activate/deactivate available widgets, that is, only if it allows for a performance improvement of some kind.

    If it’s already designed in a way that there is no added bloat, for example only using/loading what is actually used on a page, it would seem to only improve the performance of the editor, as it loads “templates” of all the widgets into the DOM as seen by inspecting the code while in the editor (much like how the customizer works).

    Otherwise the only purpose I can think of to use the above code example would be to restrict use of certain widgets or replace them with a customized version or similar to force the use of another 3rd party widget that has similar function but is rather preferred for that particular function.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Elementor widget benifit?’ is closed to new replies.