YUI Target Environments
Clone this wiki locally
- The dagger symbol (as in "iOS 6.†") indicates that the most-current non-beta version.
- Certain modules have native Node.js support, while others are DOM dependent.
Module Support in Node.js
YUI does not come with server-side DOM support out of the box, in fact we recommend against running a DOM on the server for performance reasons. This means that only a subset of YUI modules will run natively within a Node.js environment, essentially any modules which do not depend on the DOM APIs in the browser. If you're inclined to run a DOM on the server, refer to this example.
YUI's modular architecture means components of the library can be designed as multiple modules, allowing for more code and functionality to be shared between the browser and server environments. A great example of this in the IO Utility, where the
io-base module is the core logic which runs in all environments, and the
io-form module only runs in browser environments because it works with HTML
<form> elements in the DOM.