1 2 3 4 |
if (screen.width >= 600) { // download complicated script // swap in full-source images for low-source ones } |
@media all and (max-width: 900px) would be…
1 2 3 |
if (document.documentElement.clientWidth < 900) { // scripts } |