tile.js
if (window.matchMedia('screen and (max-width:740px)').matches) { $(window).load(function(){ $(".exsample li").tile(2); }); }