correct loading logic switch between mobile/desktop