Title: Subsource integrity
Last modified: July 16, 2019

---

# Subsource integrity

 *  Resolved [studio4](https://wordpress.org/support/users/studio4/)
 * (@studio4)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/subsource-integrity-2/)
 * Hello,
 * Your plugin needs to be updated to prevent subsource integrity issues when serving
   sites over SSL.
 * In /wp-content/plugins/popup-notices-for-woocommerce/src/classes/class-modal.
   php
 * `wp_enqueue_script( 'ttt_pnwc_micromodal', '//unpkg.com/micromodal/dist/micromodal.
   min.js' );`
 * should be changed to
 * `wp_enqueue_script( 'ttt_pnwc_micromodal', 'https://unpkg.com/micromodal/dist/
   micromodal.min.js' );`

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

 *  Plugin Author [Pablo Pacheco](https://wordpress.org/support/users/karzin/)
 * (@karzin)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/subsource-integrity-2/#post-11736588)
 * Hello [@studio4](https://wordpress.org/support/users/studio4/) ,
 * Generally, I enqueue script files using // because it loads them through https
   when needed. But I think it only makes sense when loading resources from the 
   same site, and not from external ones.
 * So I think there is no problem to change it like you want, thanks
    😉
 *  Thread Starter [studio4](https://wordpress.org/support/users/studio4/)
 * (@studio4)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/subsource-integrity-2/#post-11736668)
 * Hello Pablo,
 * I agree with this in principle however as part of the push towards secure web
   this causes a subsource integrity warning. I think if it’s easy enough for you
   to change to https it shouldn’t affect anyone using http but should help prevent
   any warnings for the increasing number using https.
 * Hope this makes sense and thanks for taking it on board.
 * Andy
 *  Plugin Author [Pablo Pacheco](https://wordpress.org/support/users/karzin/)
 * (@karzin)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/subsource-integrity-2/#post-11736681)
 * Sure,
    Thanks for letting me know.
 * I just updated it on version 1.1.6

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

The topic ‘Subsource integrity’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popup-notices-for-woocommerce_d7d3f6.
   svg)
 * [Popups for WooCommerce: Add to Cart, Checkout & More](https://wordpress.org/plugins/popup-notices-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-notices-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-notices-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-notices-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-notices-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-notices-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Pablo Pacheco](https://wordpress.org/support/users/karzin/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/subsource-integrity-2/#post-11736681)
 * Status: resolved