• Resolved tomdkat

    (@tomdkat)


    Hi! While working on my site, I noticed the background image didn’t appear when I enabled “maintenance mode”. All the text appeared over a black background. You can see a screenshot here: https://imgur.com/QhqbXkH

    I’m running WordPress 5.5, WP Fastest Cache, and Autoptimize. WP Fastest Cache caches and minifies HTML pages and Autoptimize minifies JavaScript and CSS files, and aggregates them, etc.

    Could Autoptimize be interfering or is there an issue with WordPress 5.5?

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • @tomdkat can you provide website url?

    Thread Starter tomdkat

    (@tomdkat)

    Hi! I can, but I can’t leave the site in “maintenance mode” for an extended time. If you don’t need the site to actually be in “maintenance mode”, here’s the URL:

    https://www.msdomingolawgroup.com/

    Thanks!

    Peace…

    @tomdkat I can’t do anything and right away available to check what’s going on. Without the website on maintenance mode I cannot do nothing.

    Thread Starter tomdkat

    (@tomdkat)

    Ok, cool. So, what if I put the site in maintenance mode and saved the generated HTML. Would that work? Otherwise, I’ll figure out another way to troubleshoot this.

    Thanks!

    Thread Starter tomdkat

    (@tomdkat)

    *** UPDATE ****
    So, I tried two other sites and found when putting them in “maintenance mode”, the background image DOES appear. Neither of those sites have Autoptimize installed, so the Autoptimize minification or aggregation functions must be causing “Maintenance” grief.

    I’ll close this for now and will start a new thread if/when I want to follow-up on the Autoptimize part.

    Thanks!

    For me the problem was Lazy load function of the Smush plugin. If you Inspect the page in Maintainance mode, you will find that the image is actually there, however, lazy loading applies extra layer of img src data which messes up the output in Maintainance plugin.

    Thread Starter tomdkat

    (@tomdkat)

    @528491-1 Thanks for posting that information! That’s really good to know! I believe WordPress 5.5 introduced lazy loading of images, by default, so I wonder if that might have an impact as well.

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    @528491-1 Thanks again for the “lazy loading” tip. I setup Autoptimize to exclude the background images from “lazy loading” and now they load just fine.

    Thanks again!

    Peace…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Background image doesn’t appear in Maintenance mode’ is closed to new replies.