optimize weight html for iphone