jquery can you have a resize event listener inside document ready 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
}