tgoop.com/webo_ru/4
Create:
Last Update:
Last Update:
Аналогично код для определения retina экрана:(function(w,e,s,c,x,l,p,d){c="className";x="deviceXDPI";l="logicalXDPI";p="devicePixelRatio";d=x in s&&l in s&&s[x]/s[l]||p in w&&w[p];d>1&&(e[c]+=" i-ua_retina_yes")})(window,document.documentElement,screen)
после «де-оптимизации» стал таким(screen.deviceXDPI&&screen.logicalXDPI&&screen.deviceXDPI/screen.logicalXDPI||window.devicePixelRatio)>1&&(document.documentElement+=" i-ua_retina_yes")
Было 191 байт, стало 125.
BY webo_ru
Share with your friend now:
tgoop.com/webo_ru/4