Funktion Call Ready Ready Gratize und Load

$(document).ready(myfunction);
$(window).on('resize load',myfunction);

function myfunction() {
    // do whatever
}
DVL