Title: wp-admin breaks when using defer javascript option
Last modified: July 13, 2022

---

# wp-admin breaks when using defer javascript option

 *  Resolved [dvdm](https://wordpress.org/support/users/dvdm/)
 * (@dvdm)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-breaks-when-using-defer-javascript-option/)
 * When we Add the defer attribute to JavaScript files, the wp-admin breaks.
 * Console logs
    Uncaught ReferenceError: wp is not defined Uncaught ReferenceError:
   acf is not defined Uncaught ReferenceError: tinymce is not defined Uncaught TypeError:
   a is undefined etc etc
 * I don’t think it’s possible to defer js files in backend. Perhaps you should 
   only check for frontend.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Rick Hoekman](https://wordpress.org/support/users/rhoekman/)
 * (@rhoekman)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-breaks-when-using-defer-javascript-option/#post-15821370)
 * Thanks for letting me know. I’ll update the plugin that it will only insert this
   on the frontend. I’ll also update the description with a heads up when using 
   defer.
 * -Rick
 *  Thread Starter [dvdm](https://wordpress.org/support/users/dvdm/)
 * (@dvdm)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-breaks-when-using-defer-javascript-option/#post-15821425)
 * That’s awesome Rick, thanks!
 *  Plugin Author [Rick Hoekman](https://wordpress.org/support/users/rhoekman/)
 * (@rhoekman)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-breaks-when-using-defer-javascript-option/#post-15821669)
 * Plugin has been updated and should fix this issue. Update will show up any minute
   now 🙂
 * Thanks again for reporting the issue!
 * -Rick

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-admin breaks when using defer javascript option’ is closed to new 
replies.

 * ![](https://ps.w.org/performance-tweaks/assets/icon.svg?rev=2754112)
 * [Performance Tweaks](https://wordpress.org/plugins/performance-tweaks/)
 * [Support Threads](https://wordpress.org/support/plugin/performance-tweaks/)
 * [Active Topics](https://wordpress.org/support/plugin/performance-tweaks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/performance-tweaks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/performance-tweaks/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rick Hoekman](https://wordpress.org/support/users/rhoekman/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-breaks-when-using-defer-javascript-option/#post-15821669)
 * Status: resolved