Loaders

Loaders are the tools that turn HTML events into events and building blocks. The process is initiated by the load() method, which is also `publically available`_ <public.rst> as p.load(). Whenever HTML is being rendered, it should be followed by this method to capture any newly inserted DOM elements. This should be

Types

Events

There are two events that are emitted during the load(). You can hook into it with your own functionality by adding an event for preLoaders and postLoaders.

p.events.add('preLoaders', function () {
    console.log('Do something great./');
});

.. _router: http://
.. _elements: http://
.. _server side rendering: http://and `elements`_
.. _elements: elements.rst
.. _CONFIG: http://