Show the 'Loading ...' component from my custom library
We have split the previous example into an actual library file and this page, where it is used.
An associated file, LoadingPanel.js contains the library containing,
for the purpose of this example, a single component: our custom panel.
The YUI Loader is capable of loading our own components besides those of the YUI library.
To achieve that we have to declare them. We do that through the addModule method.
We tell the Loader the name we wish to give our library, where to find the source, whether it is
a stylesheet or JavaScript code and, most important of all, the dependencies it has.
Once the YUI Loader learns about our libraries, we just tell it we need it and it will take
care of resolving all dependencies.
The current page, stripped of all the definitions to create the custom 'Loading...' panel is now greatly reduced.