3 ms·
The article should really note that the latter is just an alias for the former. It reads as if the author is trying to say that the reason for using $(document
by brown9-2 16y ago
The article should really note that the latter is just an alias for the former.
It reads as if the author is trying to say that the reason for using $(document).ready(handler) - to wait to run certain functions until the entire DOM has loaded - is no longer necessary.