• Resolved hitinder

    (@hitinder)


    Hello!
    I manage to break this amazing plugin by adding this below code to the function.php file.
    I add below code to functions.php page and after this I was not able to edit any object using Elementor. Every time I select “Edit with elementor” it will get stuck on the loading screen.
    I was able to load the page in safe mode but that doesn’t help.

    I am not sure how this is affecting the plugin but once I removed the code elementor started working and my PageSpeed rank fell back to B.

    I have commented this code for time being.

    
    //JS deferred parsing
    /*commented becasue it breaks elementor 
     * function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.js' ) ) return $url;
    return "$url' defer ";
    }
    add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
    */
    

    How to reproduce the error: Add above code to at the end of the functions.php file.

    Wordpress: 5.5.1
    PHP: 7.2
    Theme: Yungen
    Elementor: 3.0.9

    • This topic was modified 5 years, 7 months ago by hitinder. Reason: added new information
    • This topic was modified 5 years, 7 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Elementor breaks on adding code to function’ is closed to new replies.