• Resolved redkite

    (@redkite)


    If I turn on lazy loading for videos, the one on the home page here never loads, the spinner just spins forever. LL is turned off right now so the video will load…

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Steve Truman

    (@a3rev)

    @redkite

    Thanks for the link to the site – that really helps. The video cannot load because your site has a JavaScript errors which is blocking LazyLoad from loading the video in the viewport.

    Here is a screenshot of the JS error from browser inspection

    https://i.gyazo.com/d68f53663e1e39379082ebc22c1170f0.png

    Fix that issue and Lazy load will work fine for you. Broken JS blocks any other JS from loading after it so it would be breaking other things on your site.

    Regards
    Steve

    Thread Starter redkite

    (@redkite)

    That site’s having a lot of issues right now, I’m going to work on this page instead, maybe you can help me get this working?

    https://www.suplacemaker.com/pm-staging/?page_id=11

    When I have LL turned *on* for video, this page is loading somewhat slower when I have LL on (15.3s in webpagetest) vs. LL off (14.1s in webpagetest). The only error in the page is this one:

    “Error parsing header X-XSS-Protection: 1; mode=block; report=<URL>: insecure reporting URL for secure page at character position 22. The default protections will be applied.”

    And this is a known Chrome bug: https://stackoverflow.com/questions/48714879/error-parsing-header-x-xss-protection-google-chrome

    Is that error causing the problem with slow loading? Nothing I can do about it though, I don’t believe.

    Thread Starter redkite

    (@redkite)

    Okay, I tried another LL plugin and that one is working, even with the Chrome bug (thought it has some crazy styling that will not work in this site). So, what am I doing wrong with setup of your plugin? I’m using Advanced Custom Fields for the Learn to Use page, is there something specific I need to change in the template?

    • This reply was modified 8 years, 2 months ago by redkite. Reason: Forgot something
    Thread Starter redkite

    (@redkite)

    Apologies for all the comments – I did get it working here:

    https://www.pestprothermal.com/

    For ACF Pro, do I need to do anything special to the template in order to use lazy loading on the video custom field?

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

The topic ‘YouTube never loads’ is closed to new replies.