Disallows the document ready event, either $( function() {} )
or $( document ).ready()
.
❌ Examples of incorrect code:
$( function () { } );
$( function init() { } );
$( () => {} );
$( document ).ready( function () { } );
$().ready( function () { } );
$( 'img' ).ready( function () { } );
$div.ready( function () { } );
$( 'img' ).first().ready( function () { } );
✔️ Examples of correct code:
ready( function () { } );
ready( () => {} );
ready();
[].ready();
div.ready();
div.ready;
$.ready();
$( 'div' );
$( document );
$();