Home Forums WoodMart support forum performance

performance

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #433444

    iamfahrig
    Participant

    I did the operations according to your article, my site speed is like this, but (
    Doesn’t use passive listeners to improve scrolling performance) I don’t want this error to appear.

    Attachments:
    You must be logged in to view attached files.
    #433500

    Artem Temos
    Keymaster

    Hello,

    This error comes with jQuery library which in turn is loaded by WordPress. It is not something that is related to our theme. Also, this particular warning doesn’t harm your website’s performance in any way.

    Kind Regards

    #433631

    iamfahrig
    Participant

    Does not use passive listeners to improve scrolling performance
    Solution:

    It should be appended to the end of the file.

    public_html/wp-includes/js/jquery/jquery.min.js

    jQuery.event.special.touchstart = {
        setup: function( _, ns, handle ) {
            this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
        }
    };
    jQuery.event.special.touchmove = {
        setup: function( _, ns, handle ) {
            this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") });
        }
    };
    jQuery.event.special.wheel = {
        setup: function( _, ns, handle ){
            this.addEventListener("wheel", handle, { passive: true });
        }
    };
    jQuery.event.special.mousewheel = {
        setup: function( _, ns, handle ){
            this.addEventListener("mousewheel", handle, { passive: true });
        }
    }; 

    Test Site: https://www.exgeer.com/ With the best respects.

    Attachments:
    You must be logged in to view attached files.
    #433902

    Artem Temos
    Keymaster

    We are glad that you sorted it out. Feel free to contact us if you have any further questions.

    Kind Regards

Tagged: 

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

The topic ‘performance’ is closed to new replies.