optimize for mobile and legacy browsers