/*
 * (c) 2016 .hausformat
 */

;(function () {

    'use strict'

    // import jquery
    var $ = jQuery

    $(window).on('load', function () {
        // for now we trigger the load event on window load
        // once lazy images are used this event should be fired after all the images are loaded
        $(window).trigger('hf:load')
    })

    $.fn.hfLoad = function (callbackFn) {
        return this.on('hf:load', callbackFn)
    }
    
})();