Possible false positive ‘ready’ event detected?
-
I have an old legacy script (before the advent of Promise apparently) in a theme that makes use of a custom event
page.ready
. And several theme scripts listening to the event like so:$(document).on('page.ready', function()... )
Could it be that jQuery Migrate is falsely recognizing this as
\'ready\' event is deprecated
?There is no stack trace in jQuery Migrate so I can’t be sure this is the cause. It’s an old script and it works – and refactoring its spaghetti logic should be assiduously avoided.
I could just change the event name to something else like
page.r_e_a_d_y
or something less ridiculous, but it’s still a false positive. ie. script might already be compatible with jQuery 3.x as is.
- The topic ‘Possible false positive ‘ready’ event detected?’ is closed to new replies.