Title: Problem Smush lazy loading – SSL not working (http instead of https)
Last modified: October 11, 2023

---

# Problem Smush lazy loading – SSL not working (http instead of https)

 *  Resolved [vintageuser](https://wordpress.org/support/users/vintageuser/)
 * (@vintageuser)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/)
 * Hi
 * When I enable “lazy loading” feature of Smush plugin,
 * in browser my site url turn into **unsecure (http) **URL instead of **secure (
   https)** URL.
 * and When I **disable “lazy loading” feature**, then the site URL back to** https.**
 * I also go to Wordpres >>Settings>>General and Save settings **but Problem is 
   still persist.**
 * My site is using **Cloudflare SSL.**
 * I tried **many browsers** but same issue, the only way to resolve above issue
   is **disable plugin** or **disable lazy load feature**.
 * **Please tell me the solution to fix this issue.**

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

 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17115570)
 * Hi [@vintageuser](https://wordpress.org/support/users/vintageuser/),
 * I hope you are doing well today!
 * Your problem might be related to specific settings on Cloudflare or a compatibility
   issue. Here are few possible solutions:
    1. **Update Smush plugin:** The first step is to make sure that you are using the
       latest version of Smush plugin. If not, update it.
    2. **Enable “Automatic HTTPS rewrites” in Cloudflare:** Log in to your Cloudflare
       account, select your site, click on the ‘SSL/TLS’ application, select ‘Edge 
       Certificates’ then in ‘Automatic HTTPS rewrites’ make sure it is enabled.
    3. **Enable “Always Use HTTPS” in Cloudflare:** In the same ‘SSL/TLS’ application
       of Cloudflare, under ‘Overview’, enable the ‘Always Use HTTPS’ option.
    4. **Configure SSL in WordPress:** If you are using an SSL plugin, make sure you
       have configured the plugin properly to use the https protocol.
    5. **Check SSL in Cloudflare:** If you are using SSL on your hosting and your DNS
       is proxied by Cloudflare, then try switching to Full and Full (Strict) option
       on Cloudflare SSL settings.
    6. **Check if you have mixed content on your site:** This could also be related
       to mixed content. When a user visits the HTTPS version of your website, all 
       content, including images, scripts and other links, should be delivered over
       HTTPS. If some of these are still delivered over HTTP, then you have “mixed 
       content.” This phenomenon is treated as non-secure by most modern browsers and
       could likely be the reason for this issue. A potential solution could be to 
       search through your website’s code to find links that are still HTTP and manually
       update them to HTTPS. You can use DB search and replace plugins for that.
 * Remember to clear your browser and website cache after making these changes to
   see if any of them worked.
 * Kind regards,
   Zafer
 *  Thread Starter [vintageuser](https://wordpress.org/support/users/vintageuser/)
 * (@vintageuser)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17117503)
 * Hi,
 * I did these things, But the **Problem is still persist**, and **https SSL is 
   not working **when **Lazy Load is Activated**.
 * **Here are the all answers:**
 * **Update Smush plugin:** The first step is to make sure that you are using the
   latest version of Smush plugin. If not, update it.
 * **Ans:** Installed Smush plugin only 2 days ago so it is already latest released.
 * **Enable “Automatic HTTPS rewrites” in Cloudflare:** Log in to your Cloudflare
   account, select your site, click on the ‘SSL/TLS’ application, select ‘Edge Certificates’
   then in ‘Automatic HTTPS rewrites’ make sure it is enabled.
 * **Ans:** Already Checked Enabled!!!
 * **Enable “Always Use HTTPS” in Cloudflare:** In the same ‘SSL/TLS’ application
   of Cloudflare, under ‘Overview’, enable the ‘Always Use HTTPS’ option.
 * **Ans:** Already Checked Enabled!!!
 * **Configure SSL in WordPress:** If you are using an SSL plugin, make sure you
   have configured the plugin properly to use the https protocol.
 * **Ans:** Not using any plugin for SSL
 * **Check SSL in Cloudflare:** If you are using SSL on your hosting and your DNS
   is proxied by Cloudflare, then try switching to Full and Full (Strict) option
   on Cloudflare SSL settings.
 * **Ans:** I did **Full (Strict) option** but when i try to access my website i
   get **Error: invalid SSL certificate** (**Error code 526**) so i go back to **
   Full option**.
 * **Check if you have mixed content on your site:** This could also be related 
   to mixed content. When a user visits the HTTPS version of your website, all content,
   including images, scripts and other links, should be delivered over HTTPS. If
   some of these are still delivered over HTTP, then you have “mixed content.” This
   phenomenon is treated as non-secure by most modern browsers and could likely 
   be the reason for this issue. A potential solution could be to search through
   your website’s code to find links that are still HTTP and manually update them
   to HTTPS. You can use DB search and replace plugins for that.
 * **Ans:** No mixed content, all content/links is on **https**
 * Hope my answers will help you to find a solution for above issue.
    -  This reply was modified 2 years, 7 months ago by [vintageuser](https://wordpress.org/support/users/vintageuser/).
    -  This reply was modified 2 years, 7 months ago by [vintageuser](https://wordpress.org/support/users/vintageuser/).
      Reason: spellings
    -  This reply was modified 2 years, 7 months ago by [vintageuser](https://wordpress.org/support/users/vintageuser/).
    -  This reply was modified 2 years, 7 months ago by [vintageuser](https://wordpress.org/support/users/vintageuser/).
 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17120282)
 * Hi again [@vintageuser](https://wordpress.org/support/users/vintageuser/),
 * Thanks for the update.
 * Please also try changing the settings on Smush Lazy Load, check script loading
   on Header and Footer, and also activate Native Lazy Load.
 * [https://wpmudev.com/docs/wpmu-dev-plugins/smush/#scripts](https://wpmudev.com/docs/wpmu-dev-plugins/smush/#scripts)
   
   [https://wpmudev.com/docs/wpmu-dev-plugins/smush/#native-lazy-load](https://wpmudev.com/docs/wpmu-dev-plugins/smush/#native-lazy-load)
 * Please also make sure you don’t have any other image optimization plugins with
   lazy loading feature enabled or your theme does not include this feature and 
   turned on already which can cause conflicts.
 * Additionally, provide us the URL of your site that you are having the issue, 
   so that we can take a look.
 * Kind regards,
   Zafer
 *  Thread Starter [vintageuser](https://wordpress.org/support/users/vintageuser/)
 * (@vintageuser)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17124378)
 * I tried to set script loading method on both **Header and Footer**, But SSL/https
   is still not working.
 * I also **enabled** the Native Lazy Loading but problem still persist.
 * Even i **de-activate the all plugins** i installed in wordpress **except Smush**
   But the problem will not go and SSL/https is not working.
 * The only way problem is resolve and SSL/https will works, When i **De-Activate
   the Lazy load** function or **De-Activate** the Whole Smush Plugin.
 *  Thread Starter [vintageuser](https://wordpress.org/support/users/vintageuser/)
 * (@vintageuser)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17124385)
 * Also one more thing i notice when i go to wordpress admin dashboard the SSL/https
   is working even Lazy Loading is Activated, but same time when i go to the website
   front-end the https will not works.
 * I am using free version of Preferential Lite theme.
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17126424)
 * Hi [@vintageuser](https://wordpress.org/support/users/vintageuser/)
 * Please note this is public forum and you should not share any site login details.
 * Please email us at: [wpsupport@incsub.com](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/wpsupport@incsub.com?output_format=md)
   
   Subject: ATTN: WPMU DEV support – wp.org
 * Please send:
   – Link back to this thread for reference ([https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/))
   so that we could review this case more for you
 * Kind Regards,
   Kris
 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17152201)
 * Hi [@vintageuser](https://wordpress.org/support/users/vintageuser/),
 * We haven’t heard from you in a while, we will go ahead and mark this thread as
   resolved. If you have any additional questions or require further help, please
   let us know!
 * Kind regards,
   Zafer

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

The topic ‘Problem Smush lazy loading – SSL not working (http instead of https)’
is closed to new replies.

 * ![](https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=3447113)
 * [Smush – Image Optimization, Compression, Lazy Load, WebP & CDN](https://wordpress.org/plugins/wp-smushit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smushit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smushit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smushit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smushit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smushit/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [lazy loading](https://wordpress.org/support/topic-tag/lazy-loading/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 7 replies
 * 3 participants
 * Last reply from: [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/problem-smush-lazy-loading-ssl-not-working-http-instead-of-https/#post-17152201)
 * Status: resolved