public/js/utils.js
function addLoadEvent (func) {

        if (window.attachEvent) {
            return window.attachEvent('onload', func);
        }

        if (window.addEventListener) {
            return window.addEventListener('load', func, false);
        }

        return document.addEventListener('load', func, false);

    }
function addLoadEvent (func) {

        if (window.attachEvent) {
            return window.attachEvent('onload', func);
        }

        if (window.addEventListener) {
            return window.addEventListener('load', func, false);
        }

        return document.addEventListener('load', func, false);

    }
function addLoadEvent ( func ) { if ( window . attachEvent ) { return window . attachEvent ( 'onload' , func ) ; } if ( window . addEventListener ) { return window . addEventListener ( 'load' , func , false ) ; } return document . addEventListener ( 'load' , func , false ) ; }
Append instead of replace the onload process.
Append instead of replace the onload process .