Title: Disable script
Last modified: July 9, 2019

---

# Disable script

 *  Resolved [vladnice](https://wordpress.org/support/users/vladnice/)
 * (@vladnice)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/disable-script/)
 * Hello,
 * Is there a way to disable a script from loading in the app?
 * For instance, i have implemented the Facebook Plugin Customer Chat js code but
   I don’t want it to appear in the app.
 * Thank you.

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

 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/disable-script/#post-11717165)
 * Hello
 * The easy way to hide something you do not want on the app is to use a CSS rule.
 * With the website url I will be able to help you 🙂
 *  Thread Starter [vladnice](https://wordpress.org/support/users/vladnice/)
 * (@vladnice)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/disable-script/#post-11720102)
 * Well, I know how to do that but I was wondering if there is a way to not unnecessary
   load a script that’s not used in the app.
 * Thanks.
 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/disable-script/#post-11720760)
 * You can deregister a specific script with a plugin and the [https://codex.wordpress.org/Function_Reference/wp_deregister_script](https://codex.wordpress.org/Function_Reference/wp_deregister_script)
   function but it’s for experienced user.
 * To detect if you are in the app, the function is_wpappninja() return true if 
   in the app.
 *  Thread Starter [vladnice](https://wordpress.org/support/users/vladnice/)
 * (@vladnice)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/disable-script/#post-11725818)
 * Thank you!

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

The topic ‘Disable script’ is closed to new replies.

 * ![](https://ps.w.org/wpappninja/assets/icon-256x256.png?rev=2215187)
 * [WPMobile.App](https://wordpress.org/plugins/wpappninja/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpappninja/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpappninja/)
 * [Active Topics](https://wordpress.org/support/plugin/wpappninja/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpappninja/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpappninja/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [vladnice](https://wordpress.org/support/users/vladnice/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/disable-script/#post-11725818)
 * Status: resolved