Support » Plugin: Lazy Load for Videos » IOS Ipad Not working , Fixed the code.

  • ddkonline

    (@ddkonline)


    Hi,

    I was reported the bug few weeks ago but yet to have response for support.
    So i figure it out the issue.
    IOS 12.1.4 (IPAD Air 1) , Display a blank video. click the blank space to active the proper video can only display.
    (https://www.kweber.com/lazy-load-videos/) Official site were showing the same issue.
    While IOS 12.2 (Iphone 6P) were working fine. I think the IOS updated the code to resolved some JS.

    The manual fix come below
    lazy-load-for-videos\assets\js\lazyload-all.js

    if("IntersectionObserver"in window||"IntersectionObserverEntry"in window||"intersectionRatio"in window.IntersectionObserverEntry.prototype)

    Replace with

    if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&!("isIntersecting"in IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),

    Now should working fine across all devices.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IOS Ipad Not working , Fixed the code.’ is closed to new replies.