Title: Jetpack Infinite Scroll on HTTPS doesn&#039;t load
Last modified: August 22, 2016

---

# Jetpack Infinite Scroll on HTTPS doesn't load

 *  Resolved [stefano93](https://wordpress.org/support/users/stefano93/)
 * (@stefano93)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/jetpack-infinite-scroll-on-https-doesnt-load/)
 * Hi, I’m running my site on HTTPS protocol and I have JetPack Infinite Scroll 
   enabled. On the frontend, the script is loaded before the definition of the `
   infiniteScroll` variable, and the following check is executed too early throwing
   an error in the console:
 *     ```
       if ( "https:" == document.location.protocol ) {
       	infiniteScroll.settings.ajaxurl = infiniteScroll.settings.ajaxurl.replace( "http://", "https://" );
       }
       ```
   
 * Probably, this code should be executed in the `$(document).ready` block, so I
   think this is a bug. Can anyone confirm this, and maybe fix it?
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 5 months ago](https://wordpress.org/support/topic/jetpack-infinite-scroll-on-https-doesnt-load/#post-5650759)
 * This was solved on GitHub:
    [https://github.com/Automattic/jetpack/issues/1488](https://github.com/Automattic/jetpack/issues/1488)

Viewing 1 replies (of 1 total)

The topic ‘Jetpack Infinite Scroll on HTTPS doesn't load’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/jetpack-infinite-scroll-on-https-doesnt-load/#post-5650759)
 * Status: resolved