Lettura delle dimensioni della viewport al "reload"
function jqReadDisplaySize(){
// Get the dimensions of the viewport
var width = $(window).width();
var height = $(window).height();
action here //or
if(width < dimention){
action here
}
};
$(document).ready(jqReadDisplaySize);