Title: Plugin doesn&#8217;t work on defer javascript
Last modified: February 20, 2017

---

# Plugin doesn’t work on defer javascript

 *  Resolved [topcoder04](https://wordpress.org/support/users/topcoder04/)
 * (@topcoder04)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-defer-javascript/)
 * I recently added below code to my website (to defer javascript to improve performance)
   and pushengage notifications doesn’t appear anymore. please make your plugin 
   compatible.
 * // Defer Javascripts
    // Defer jQuery Parsing using the HTML5 defer property 
   if (!(is_admin() )) { function defer_parsing_of_js ( $url ) { if ( FALSE === 
   strpos( $url, ‘.js’ ) ) return $url; if ( strpos( $url, ‘jquery.js’ ) ) return
   $url; // return “$url’ defer “; return “$url’ defer onload='”; } add_filter( ‘
   clean_url’, ‘defer_parsing_of_js’, 11, 1 ); }

Viewing 1 replies (of 1 total)

 *  Plugin Author [PushEngage](https://wordpress.org/support/users/pushengage/)
 * (@pushengage)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-defer-javascript/#post-8994005)
 * We do support aysnch load and the correct code for that is below
 * <script src=”[https://clientcdn.pushengage.com/core/yoursite.js&#8221](https://clientcdn.pushengage.com/core/yoursite.js&#8221);
   async onload=”_pe.subscribe();”></script>

Viewing 1 replies (of 1 total)

The topic ‘Plugin doesn’t work on defer javascript’ is closed to new replies.

 * ![](https://ps.w.org/pushengage/assets/icon.svg?rev=2873206)
 * [PushEngage – Web Push Notifications, WooCommerce Automation & Chat Widget](https://wordpress.org/plugins/pushengage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pushengage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pushengage/)
 * [Active Topics](https://wordpress.org/support/plugin/pushengage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pushengage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pushengage/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [PushEngage](https://wordpress.org/support/users/pushengage/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-defer-javascript/#post-8994005)
 * Status: resolved