ready and resize code example
Example: function call ready resize and load
$(document).ready(myfunction);
$(window).on('resize load',myfunction);
function myfunction() {
// do whatever
}
$(document).ready(myfunction);
$(window).on('resize load',myfunction);
function myfunction() {
// do whatever
}