Title: Elementor breaks on adding code to function
Last modified: October 20, 2020

---

# Elementor breaks on adding code to function

 *  Resolved [hitinder](https://wordpress.org/support/users/hitinder/)
 * (@hitinder)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/elementor-breaks-on-adding-code-to-function/)
 * 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](https://wordpress.org/support/users/hitinder/).
      Reason: added new information
    -  This topic was modified 5 years, 7 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: please use CODE button for code formatting

Viewing 1 replies (of 1 total)

 *  [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * (@saidaboukhadra)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/elementor-breaks-on-adding-code-to-function/#post-13886156)
 * Hello,
 * For this type of issues, please use the below user guide about editing issues:
 * [https://elementor.com/help/cant-edit-with-elementor/](https://elementor.com/help/cant-edit-with-elementor/)
 * Regards,
    Said

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/elementor-breaks-on-adding-code-to-function/#post-13886156)
 * Status: resolved