Title: Dequeue CSS and JS
Last modified: May 26, 2020

---

# Dequeue CSS and JS

 *  Resolved [ambushiv](https://wordpress.org/support/users/ambushiv/)
 * (@ambushiv)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/dequeue-css-and-js/)
 * Hello guys, I need to know if it’s possible to unload the CSS & JS from this 
   plugin and load it on request via a JS trigger.
 * I searched the internet with no luck so far. I hope you can enlighten me. Thank
   you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdequeue-css-and-js%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 11 months ago](https://wordpress.org/support/topic/dequeue-css-and-js/#post-12897476)
 * Hello there,
    You can search for the WordPress functions `wp_enqueue_style` and`
   wp_enqueue_script` to find the IDs of the style and script files loaded by the
   extension, and then unload them via PHP.
 * – [https://github.com/woocommerce/woocommerce-gateway-stripe/search?q=wp_enqueue_style&unscoped_q=wp_enqueue_style](https://github.com/woocommerce/woocommerce-gateway-stripe/search?q=wp_enqueue_style&unscoped_q=wp_enqueue_style)
   –
   [https://github.com/woocommerce/woocommerce-gateway-stripe/search?q=wp_enqueue_style&unscoped_q=wp_enqueue_script](https://github.com/woocommerce/woocommerce-gateway-stripe/search?q=wp_enqueue_style&unscoped_q=wp_enqueue_script)
 *  Thread Starter [ambushiv](https://wordpress.org/support/users/ambushiv/)
 * (@ambushiv)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/dequeue-css-and-js/#post-12900642)
 * Thank you for your fast reply!
 * That is the part I can find too but I’m more interested in re-adding the styles
   and scripts via a button click (through JS). Is there a way to do this?
    -  This reply was modified 5 years, 11 months ago by [ambushiv](https://wordpress.org/support/users/ambushiv/).
 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 11 months ago](https://wordpress.org/support/topic/dequeue-css-and-js/#post-12920425)
 * I think it would be possible but we do not have a script ready that can do that.
 * I’m going to leave it open for a bit to see if anyone is able to chime in to 
   help you out.
 * I can also recommend the following places for more development-oriented questions:
    1. WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    2. WooCommerce FB group: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)
 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 11 months ago](https://wordpress.org/support/topic/dequeue-css-and-js/#post-12963797)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

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

The topic ‘Dequeue CSS and JS’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/dequeue-css-and-js/#post-12963797)
 * Status: resolved