Title: Exclude external js file
Last modified: November 25, 2020

---

# Exclude external js file

 *  Resolved [Finley Chen](https://wordpress.org/support/users/inlorfaze/)
 * (@inlorfaze)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/exclude-external-js-file/)
 * I’m trying to exclude a deferred external js file using regex without much success.
 * `<script defer="" type="text/javascript" src="//bcdn.grmtas.com/pub/ga_pub_705.
   js"></script>`
 * Can you help me figure out how to properly exclude this single file, or perhaps
   all js files with “defer” in the script?
 * Thanks
    -  This topic was modified 5 years, 4 months ago by [Finley Chen](https://wordpress.org/support/users/inlorfaze/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-external-js-file%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Anonymous User 16850768
 * (@anonymized-16850768)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/exclude-external-js-file/#post-13727273)
 * The Cache Enabler plugin won’t affect inline scripts like the one posted above.
   What are you trying to exclude it from? 🙂

Viewing 1 replies (of 1 total)

The topic ‘Exclude external js file’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User 16850768
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/exclude-external-js-file/#post-13727273)
 * Status: resolved