i am using this code to refresh my page when the browser is resizes. Unfortunately this effects scrolling on mobile devices. The page keeps on reloading when is scroll in my iPhone. Is there a way to exclude mobile devices from this code?
$(window).bind('resize', function(e)
{
if (window.RT) clearTimeout(window.RT);
window.RT = setTimeout(function()
{
this.location.reload(false); /* false to get page from cache */
}, 100);
});
Thank you!