Issue with rocket loader script

Hello,

I am having an issue with the rocket-loader.min.js

It seemingly creates a scroll blocking event on a mobile causing the menu to lock up.

Error:
“[Violation] Added non-passive event listener to a scroll-blocking ‘touchmove’ event. Consider marking event handler as ‘passive’ to make the page more responsive.”

part of the code causing it (according the chrome) line 455-484

    t.prototype.patchEventTargetMethods = function(t) {
        var e = this
          , n = t.addEventListener
          , r = t.removeEventListener;
        t.addEventListener = function(t, r) {
            for (var o = [], i = 2; i < arguments.length; i++)
                o[i - 2] = arguments[i];
            var a = m(this)
              , c = r && r.__rocketLoaderProxiedHandler;
            if (!c) {
                var s = f(r);
                "function" == typeof s ? (c = function(n) {
                    if (e.bypassEventsInProxies || a.indexOf(t) < 0)
                        return s.call(this, n)
                }
                ,
                Object.defineProperty(r, "__rocketLoaderProxiedHandler", {
                    value: c
                })) : c = r
            }
            n.call.apply(n, [this, t, c].concat(o))
        }
        ,
        t.removeEventListener = function(t, e) {
            for (var n = [], o = 2; o < arguments.length; o++)
                n[o - 2] = arguments[o];
            var i = e && e.__rocketLoaderProxiedHandler || e;
            r.call.apply(r, [this, t, i].concat(n))
        }
    }

Site to see the error:

What can I do about this?

Thanks in advance
Martijn

Rocket Loader does not compatible with all websites with JavaScript. Most probably it will cause problems to your website. Consider turning Rocket Loader off.

Just to let you know,
the problem what in an underlying script not in the rocket loader script

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.