Depending on what your application needs to do though, it could be far less code than including jQuery. I was using vanilla JS and really struggling with understanding when elements on a page were ready and how I could access them.
The map function allows you to modify the items before they get slapped into the new array.
So beware if your web pages integrate third-party services. Leland Richardson and Jonathan Sampson helped me add a few more features to and clean up the above code. Finally, in order to insert contents in your web pages, prefer DOM manipulation rather than using document.
Loading all scripts last will at least make your application seem to load faster. What kind of issues may you experience? Indeed, this change is about to occur from mid-october, with the release of Chrome You can use document.
There are a thousand ways that you can argue and or justify any of these items. I did this mainly so that I could just use the DOM selection utilities.
There is nothing wrong with it, except that its not the only iteration function the jQuery provides. What are the alternatives?
However, jQuery is not an all or nothing library anymore.