Title: Idea: Loading scripts without &quot;http&quot; or &quot;https&quot;
Last modified: August 31, 2016

---

# Idea: Loading scripts without "http" or "https"

 *  [KeenanPayne](https://wordpress.org/support/users/keenanpayne/)
 * (@keenanpayne)
 * [10 years ago](https://wordpress.org/support/topic/idea-loading-scripts-without-http-or-https/)
 * I recently ran into an issue with this plugin as the website that I use it runs
   on HTTPS and only accepts assets from HTTPS sources. However, on line 28 of `
   sc-insert.php` in your plugin, you make a call for jQuery from an HTTP URL which
   broke the plugin on my website.
 * My suggestion is to replace this line of code:
 * `<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></
   script>`
 * With:
 * `<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script
   >`
 * So that you can allow the server to resolve whether or not to use an HTTP or 
   HTTPS URL. This should also be used for the other 3rd party assets as well, as
   I was noticing the same issue with the sharing popup that you display (coming
   from an HTTP URL instead of an HTTPS).
 * [https://wordpress.org/plugins/shortcoder/](https://wordpress.org/plugins/shortcoder/)

Viewing 1 replies (of 1 total)

 *  [mysti28](https://wordpress.org/support/users/mysti28/)
 * (@mysti28)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/idea-loading-scripts-without-http-or-https/#post-7194936)
 * [@keenanpayne](https://wordpress.org/support/users/keenanpayne/): great thanks
   for your great tipp. on my site (with https) the insert shortcode still not working.
 * after changing the jquery request into https request i can use the shortcode 
   popup.
 * wish you a nice day

Viewing 1 replies (of 1 total)

The topic ‘Idea: Loading scripts without "http" or "https"’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

## Tags

 * [assets](https://wordpress.org/support/topic-tag/assets/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 2 participants
 * Last reply from: [mysti28](https://wordpress.org/support/users/mysti28/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/idea-loading-scripts-without-http-or-https/#post-7194936)
 * Status: not resolved