Title: script not loading on pages over https
Last modified: August 21, 2016

---

# script not loading on pages over https

 *  Resolved [bridgetwes](https://wordpress.org/support/users/bridgetwes/)
 * (@bridgetwes)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/script-not-loading-on-pages-over-https/)
 * Hi,
 * Thank your for your plugin, it works very well on my development site. My live
   site, however, uses https and the jal.js file was not loading because it was 
   not being included with https:// . I fixed the issue on my copy. WP_PLUGIN_URL
   does not automatically switch to https:// on https pages (it isn’t https aware).
   The plugins_url function does. I changed lines 76 and 481 to the following which
   fixes the issue and loads the scripts over https if the page loading the script
   is on https:// – otherwise, the script loads over http://
    wp_enqueue_script(‘
   jquery_archive_list’, plugins_url( self::JS_FILENAME, __FILE__ ), array(‘jquery’),
   false, true);
 * With this change, you don’t need lines 48-50. I hope this is helpful.
 * [http://wordpress.org/plugins/jquery-archive-list-widget/](http://wordpress.org/plugins/jquery-archive-list-widget/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Miguel Useche](https://wordpress.org/support/users/skatox/)
 * (@skatox)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/script-not-loading-on-pages-over-https/#post-4148889)
 * Wow, thanks for this approach. It’s simpler than mine, i’ll add this change next
   saturady and update the plugin. So, don’t worry about it on next versions.

Viewing 1 replies (of 1 total)

The topic ‘script not loading on pages over https’ is closed to new replies.

 * ![](https://ps.w.org/jquery-archive-list-widget/assets/icon.svg?rev=2738248)
 * [JS Archive List](https://wordpress.org/plugins/jquery-archive-list-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-archive-list-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-archive-list-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-archive-list-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-archive-list-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-archive-list-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Miguel Useche](https://wordpress.org/support/users/skatox/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/script-not-loading-on-pages-over-https/#post-4148889)
 * Status: resolved