Title: Mixed content
Last modified: August 30, 2016

---

# Mixed content

 *  Resolved anonymized-11892634
 * (@anonymized-11892634)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mixed-content-6/)
 * Hi, great idea for a plugin!
 * I was wondering though, would it not be best to remove the protocol from the 
   path to avoid mixed content warnings? e.g.:
 * `wp_enqueue_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/'.
   $jquery_ver.'/jquery.min.js', false, null,true);`
 * Changed to:
 * `wp_enqueue_script('jquery', '//cdnjs.cloudflare.com/ajax/libs/jquery/'.$jquery_ver.'/
   jquery.min.js', false, null,true);`
 * I might be wrong, but just thought I would ask 🙂
 * Phil
 * [https://wordpress.org/plugins/use-jquery-cloudflare/](https://wordpress.org/plugins/use-jquery-cloudflare/)

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

 *  Plugin Author [luciole135](https://wordpress.org/support/users/luciole135/)
 * (@luciole135)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mixed-content-6/#post-6525151)
 * Hello,
    Why not. It’s do-able. According to my initial tests, it’s much slower.
   Perform your side speed tests to confirm if any gain in speed or not.
 *  Thread Starter anonymized-11892634
 * (@anonymized-11892634)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mixed-content-6/#post-6525176)
 * Interesting!
 * I just tested it using [http://test2.fomos.co.uk](http://test2.fomos.co.uk) by
   doing 5 consecutive sweeps for each on [https://gtmetrix.com/](https://gtmetrix.com/).
   The total load time for both averages to 3.1 seconds.
 * Looking at the individual assets, the average jquery load time was 19ms with ‘
   [https://&#8217](https://&#8217); and 14ms with ‘//’.
 * If the loading time in your tests was significantly worse in your tests, it’s
   maybe worth leaving the plugin as it is now. I have seen suggestions that you
   should leave the protocol out to make it relative. e.g. Section 5 of [https://css-tricks.com/moving-to-https-on-wordpress/](https://css-tricks.com/moving-to-https-on-wordpress/)
 * Either way, I’m definitely going to keep using this plugin. Comparing the load
   times with this plugin disabled it loaded in 7 seconds!
 * Thanks!
 * Phil
 *  Thread Starter anonymized-11892634
 * (@anonymized-11892634)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mixed-content-6/#post-6525177)
 * Actually… I guess the problem only really occurs if the source is http and not
   https. Since they’re enqueued as https there shouldn’t be any issues.
 * Think I’ve only just got my head around this 🙂

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

The topic ‘Mixed content’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/use-jquery-cloudflare.svg)
 * [Use jQuery Cloudflare](https://wordpress.org/plugins/use-jquery-cloudflare/)
 * [Support Threads](https://wordpress.org/support/plugin/use-jquery-cloudflare/)
 * [Active Topics](https://wordpress.org/support/plugin/use-jquery-cloudflare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/use-jquery-cloudflare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/use-jquery-cloudflare/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: anonymized-11892634
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/mixed-content-6/#post-6525177)
 * Status: resolved