Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
jQuery is one of the best JavaScript libraries that help you do Ajax calls, search the HTML DOM for a particular element, and modify the DOM. It also has its own plug-in framework. The best thing is its cross-browser framework, taking the headache out of browser differences. You can refer to the following jQuery tutorial: www.w3schools.com/jquery/default.asp.
jQuery initialization is a two-step process.
This is necessary as an HTML page may include many files like CSS, JavaScript, and images. The browser would download all these resources and start executing all the JavaScript blocks. If you start to use jQuery API calls before proper initialization, you will get errors. Therefore, you declare a callback, which is an entry point for our application, and jQuery will call this callback and bootstrap the application.