I am starting to read jQuery section and as the first step it is introduced the ready method.
Reading documentation it seems ready statement is already deprecated with version 3.0:
What’s the purpose of still using the ready, like FCC beta suggest?
I am starting to read jQuery section and as the first step it is introduced the ready method.
Reading documentation it seems ready statement is already deprecated with version 3.0:
What’s the purpose of still using the ready, like FCC beta suggest?
Ok so think about it. If you get a job you might (likely) see some legacy code which uses ready()
.
Nice that you are looking at the future versions but remember FCC is designed for complete beginners.
It would be good to know this useage of ready()
don’t you think?
So to clarify the recommended jQuery v3 way to add the handler code is:
$(function() {
// Handler for .ready() called.
});