I'm trying to build mobile version of my website using CSS and jQuery. Website works fine but when page is still loading on mobile browser, it shows full version of website for a second then shows mobile version when page is fully loaded. Last time even I made different website for mobile for same domain name using:
if($(window).width()<500){window.loacation('mobile.webtsite.com')}
still I have the same problem. But this time what I am doing is:
if($(window).width()<500){
$("#linkCss").attr('href','styles/mobile.css');
var high=$(window).height()*60/100;