prevent webkit flashes for mobile devices