Add function to process hooks on-demand

This library has a function that runs at an interval for checking if the window has changed size and what hooks can be fired (why not bind to the window size change event?). The function I've added allows the hooks to be processed on-demand, so that any actions defined will be executed before continuing.