• Hi @famethemes!

    At first: I really like this Theme and have made dozens of client sites with it (free and pro version). ??

    But for the last client I needed some performance optimizations and tried to remove the jQuery Migrate Script. So I turned on script debug:
    define( 'SCRIPT_DEBUG', true ); in wp-config.php and looked at the console and Migrate is now logging every failure:

    JQMIGRATE: Migrate is installed with logging active, version 1.4.1

    Unfortunately and unexpected I saw a next line:
    JQMIGRATE: jQuery.fn.load() is deprecated

    for this line: /wp-content/themes/onepress/assets/js/theme.js:392:5

    The line is showing this: jQuery(window).load(function(){

    After googling I saw this usage/load event is deprecated since jQuery 1.8:
    https://api.jquery.com/load-event/

    It would be great if you can use the preferred method of using this: .on( "load", handler )
    Described here: https://jquery.com/upgrade-guide/3.0/#event

    Then I can remove the Migrate script and save some KB. ??

    Thanks for considering!

    All the best,
    Torsten

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Usage of deprecated jQuery function’ is closed to new replies.