Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Delay in Video Scaling/Loading on Mobile

Delay in Video Scaling/Loading on Mobile

Scheduled Pinned Locked Moved Bug Reports
20 Posts 2 Posters 135 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh
    Global Moderator
    wrote on last edited by
    #10

    can you try this css

    video{
    display: none;
    }
    video.loaded{
    display: block;
    }
    

    i cant replicate the issue but maybe this css fixes it

    Enter this css in "lay options" -> "custom css & html" -> "custom css"

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MWPA
      wrote on last edited by MWPA
      #11

      Thanks, Armin! I've added the code, but now the videos aren't loading at all—neither on desktop nor on mobile.

      I also received a warning (see screenshot).

      Scherm­afbeelding 2025-02-20 om 11.22.07.png

      Even after following the recommendation, it still doesn't work.

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by
        #12

        video{
        opacity: 0!important;
        }
        video.loaded{
        opacity: 1!important;
        }

        and if you try this code above instead?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MWPA
          wrote on last edited by
          #13

          No, unfortunately this doesn't work either. The screen just stays white – it seems like the video isn't loading at all.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MWPA
            wrote on last edited by
            #14

            @arminunruh Would you mind thinking this through with me one more time?

            On desktop, everything works perfectly. However, on mobile, there's a brief moment where the video initially loads in its original aspect ratio before it scales to fit the browser height.

            I’m wondering if there’s a way to make the video load directly in its scaled version – set to the browser height – without that initial delay or shift.

            Strangely, about 1 out of every 15 refreshes on my mobile, it does load just the way I want it to: a quick white flash, then the video appears perfectly scaled. That’s exactly the behavior I’d like to see by default.

            Do you have any idea what might be causing this inconsistency? I'd really appreciate your help!

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MWPA
              wrote on last edited by
              #15

              I've made a screen recording and during testing it clearly shows what I described.

              The second time I reload the page, you can see exactly the behavior I want: a quick white flash, then the video appears perfectly scaled.

              But on the third reload, it malfunctions again.

              Here’s my screen recording for reference.

              I'd really appreciate your help Armin.

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #16

                Hey, what is your iOS version? Seeing that your browser bar is at the top, it may be a year or two old. I'll have to check with this specific iOS version.

                1 Reply Last reply
                0
                • arminunruhA Offline
                  arminunruhA Offline
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #17

                  Can you go to Layer Options, then at the top click on the Lazy Loading section button?

                  If you have the latest Laytheme version, now there is a setting to enable or disable lazy loading for videos.

                  Can you disable it? This will probably do nothing but can be worth a try.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MWPA
                    wrote on last edited by MWPA
                    #18

                    Hi Armin, thanks!

                    I’m using an iPhone 12 with iOS version 15.6.1.

                    I checked the Lazy Loading settings under Layer Options, and video lazy loading was already disabled.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MWPA
                      wrote on last edited by
                      #19

                      What’s interesting is that I’ve seen the same behavior on newer devices as well – for example, on my wife’s iPhone, which she bought new in December. I’m not exactly sure which iOS version she’s on, but I’ll check that too. So I’m not convinced it’s strictly tied to an older iOS version.

                      Let me know if there's anything else I can test or try – happy to help troubleshoot further.

                      1 Reply Last reply
                      0
                      • arminunruhA Offline
                        arminunruhA Offline
                        arminunruh
                        Global Moderator
                        wrote on last edited by
                        #20

                        hey

                        i tested ios 15 and 14 but couldnt see this issue.
                        with the next lay theme update, go to lay options, other section,
                        and enable this:

                        Screenshot 2025-04-23 at 17.52.54.png

                        this might help.

                        You could also try to remove the opacity of the row background. Meaning, put the opacity slider to its original position.
                        Maybe iOS has an issue with that CSS filter that is applied to the video.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        I also code custom websites or custom Lay features.
                        💿 Email me here: 💿
                        info@laytheme.com

                        Before you post:
                        1. When using a WordPress Cache plugin, disable it or clear your cache.
                        2. Update Lay Theme and all Lay Theme Addons
                        3. Disable all Plugins
                        4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                        This often solves issues you might run into

                        When you post:
                        1. Post a link to where the problem is
                        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                        Online Users
                        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                        laytheme.com
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Search