Title: Ditch data-wpmeteor-nooptimize
Last modified: March 28, 2024

---

# Ditch data-wpmeteor-nooptimize

 *  [Ben](https://wordpress.org/support/users/benbornschein/)
 * (@benbornschein)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/ditch-data-wpmeteor-nooptimize/)
 * Instead of adding your own data attribute for excluding scripts from being optimized,
   please use the widely used data attribute `data-no-optimize` or `data-no-minify`.

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

 *  Plugin Author [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * (@aguidrevitch)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/ditch-data-wpmeteor-nooptimize/#post-17535670)
 * Hi [@benbornschein](https://wordpress.org/support/users/benbornschein/),
 * In the first place, `data-wpmeteor-nooptimize` is an internal thing, that excludes
   wp meteor native code from optimization. Unfortunately, I can not rely on the
   attributes like `data-no-optimize` or `data-no-minify` to do internal work, required
   by the plugin.
 * Does it cause any issues for you?
 * Best,
   Alex
 *  Thread Starter [Ben](https://wordpress.org/support/users/benbornschein/)
 * (@benbornschein)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/ditch-data-wpmeteor-nooptimize/#post-17535764)
 * Hi Alex,
 * you can keep the data attribute for your JS files, but any other script tag that
   has a `no-optimize` or `no-minify` data attribute should be ignored by your plugin,
   just like any other caching/optimization plugin does.
 * Otherwise, your plugin will cause conflicts. The same goes for script tags of`
   type="module"`. These script tags must be ignored; otherwise you will break code.
 * Best regards,
   Ben – Developer of Borlabs Cookie
    -  This reply was modified 2 years, 2 months ago by [Ben](https://wordpress.org/support/users/benbornschein/).
    -  This reply was modified 2 years, 2 months ago by [Ben](https://wordpress.org/support/users/benbornschein/).
 *  Plugin Author [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * (@aguidrevitch)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/ditch-data-wpmeteor-nooptimize/#post-17536154)
 * While I will certainly review your suggestion about using `no-optimize` and `
   no-minify`, I believe that delaying `type="module"` should work perfectly, provided
   the order of loading is preserved. If you have scripts that are excluded from
   optimization and depend on a `type="module"` script, then the module should also
   be excluded from optimization. Otherwise, If you have any examples where this
   approach fails, please share them with me; I’d like to address that issue.
 *  Thread Starter [Ben](https://wordpress.org/support/users/benbornschein/)
 * (@benbornschein)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/ditch-data-wpmeteor-nooptimize/#post-17536349)
 * I have checked your code. You simply block JavaScript without changing the location
   of the file, that shouldn’t be a problem for modules. But I see possible problems
   in combination with our plugin if you change JavaScript that has been changed
   by us and is not allowed to be changed.
 * In addition, the first customers are already reporting problems: [https://wordpress.org/support/topic/exclude-borlabs-cookie-plugin-scripts-issue/](https://wordpress.org/support/topic/exclude-borlabs-cookie-plugin-scripts-issue/)

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

The topic ‘Ditch data-wpmeteor-nooptimize’ is closed to new replies.

 * ![](https://ps.w.org/wp-meteor/assets/icon.svg?rev=2452791)
 * [WP Meteor Website Speed Optimization Addon](https://wordpress.org/plugins/wp-meteor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-meteor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-meteor/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-meteor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-meteor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-meteor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ben](https://wordpress.org/support/users/benbornschein/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/ditch-data-wpmeteor-nooptimize/#post-17536349)
 * Status: not resolved